Upgrade to Rails 7.1 #504
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ master, bs4 ] | |
pull_request: | |
branches: [ master, bs4 ] | |
workflow_dispatch: | |
jobs: | |
spec_v8: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: false | |
- name: Setup git submodules | |
run: | | |
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | |
git submodule update --init --recursive | |
- name: Docker compose build | |
run: docker-compose build | |
- name: Setup database & test env | |
run: docker-compose run web bin/rake db:create db:schema:load RAILS_ENV=test | |
- name: Run spec_v8 tests | |
run: docker-compose run web bin/spec_v8 | |
spec_models: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: false | |
- name: Setup git submodules | |
run: | | |
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | |
git submodule update --init --recursive | |
- name: Docker compose build | |
run: docker-compose build | |
- name: Setup database & test env | |
run: docker-compose run web bin/rake db:create db:schema:load RAILS_ENV=test | |
- name: Run spec_models tests | |
run: docker-compose run web bin/spec_models | |
spec_controllers: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: false | |
- name: Setup git submodules | |
run: | | |
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | |
git submodule update --init --recursive | |
- name: Docker compose build | |
run: docker-compose build | |
- name: Setup database & test env | |
run: docker-compose run web bin/rake db:create db:schema:load RAILS_ENV=test | |
- name: Run spec_controllers tests | |
run: docker-compose run web bin/spec_controllers | |
spec_features: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: false | |
- name: Setup git submodules | |
run: | | |
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | |
git submodule update --init --recursive | |
- name: Docker compose build | |
run: docker-compose build | |
- name: Setup database & test env | |
run: docker-compose run web bin/rake db:create db:schema:load RAILS_ENV=test | |
- name: Run spec_features tests | |
run: docker-compose run web bin/spec_features | |
spec_lib: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: false | |
- name: Setup git submodules | |
run: | | |
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | |
git submodule update --init --recursive | |
- name: Docker compose build | |
run: docker-compose build | |
- name: Setup database & test env | |
run: docker-compose run web bin/rake db:create db:schema:load RAILS_ENV=test | |
- name: Run spec_lib tests | |
run: docker-compose run web bin/spec_lib | |
spec_integration: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: false | |
- name: Setup git submodules | |
run: | | |
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | |
git submodule update --init --recursive | |
- name: Docker compose build | |
run: docker-compose build | |
- name: Setup database & test env | |
run: docker-compose run web bin/rake db:create db:schema:load RAILS_ENV=test | |
- name: Run spec_integration tests | |
run: docker-compose run web bin/spec_integration | |
spec_usermanual: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: false | |
- name: Setup git submodules | |
run: | | |
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | |
git submodule update --init --recursive | |
- name: Docker compose build | |
run: docker-compose build | |
- name: Setup database & test env | |
run: docker-compose run web bin/rake db:create db:schema:load RAILS_ENV=test | |
- name: Run spec_usermanual tests | |
run: docker-compose run web bin/spec_usermanual | |
- name: Update manual to testmycode-usermanual | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: doc/usermanual | |
target-folder: usermanual |