2024-07-22 22:40:56 +02:00
|
|
|
on: [push]
|
|
|
|
|
jobs:
|
|
|
|
|
test:
|
|
|
|
|
runs-on: docker
|
2024-07-22 22:42:27 +02:00
|
|
|
container: ruby:3.3.4
|
2024-07-22 22:40:56 +02:00
|
|
|
name: Text
|
|
|
|
|
steps:
|
2024-07-22 22:48:43 +02:00
|
|
|
- uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
|
|
|
|
|
with:
|
|
|
|
|
ruby-version: '3.3.4' # Not needed with a .ruby-version file
|
|
|
|
|
- name: Cache repository
|
|
|
|
|
uses: actions/cache@v4
|
|
|
|
|
id: cache-repository
|
|
|
|
|
with:
|
|
|
|
|
path: repository
|
|
|
|
|
key: ${{ runner.os }}-repository-${{ github.sha }}
|
|
|
|
|
restore-keys: |
|
|
|
|
|
${{ runner.os }}-repository-
|
|
|
|
|
- name: Cache bundle
|
|
|
|
|
uses: actions/cache@v4
|
|
|
|
|
id: cache-bundle
|
|
|
|
|
with:
|
|
|
|
|
path: /usr/local/bundle
|
2024-07-22 22:40:56 +02:00
|
|
|
- name: Checkout repository
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
with:
|
|
|
|
|
path: repository
|
|
|
|
|
submodules: recursive
|
|
|
|
|
- run: cd repository
|
|
|
|
|
- run: bundle install
|
|
|
|
|
- run: bundle exec rails test
|