wip #101
This file contains hidden or 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: Test superglue_rails | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Ruby ${{ matrix.ruby }}. Rails ${{ matrix.version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: ["3.3", "3.2", "3.1"] | |
version: ["70", "71", "72", "80"] | |
exclude: | |
- ruby: 3.1 | |
version: 80 | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 23.10.0 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Which bundler? | |
run: bundle -v | |
- name: Which chromedriver? | |
run: chromedriver -v | |
- name: Using Gemfile | |
run: | | |
mv -f Gemfile.${{ matrix.version }} ./Gemfile | |
- name: Bundle install | |
run: bundle install | |
- name: Precompile assets | |
run: cd test/dummy && bundle exec rails assets:precompile | |
- name: Run unit test | |
run: bundle exec rake test | |
- name: Run acceptance test | |
run: BUNDLE_GEMFILE='' ruby -Ilib:test test/acceptance/superglue_installation_acceptance.rb | |
- name: Upload artifact | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: superglue_rails_run${{ matrix.ruby }}${{ matrix.version }} | |
path: test/dummy/tmp/screenshots/ | |
retention-days: 7 |