Fix Zeus #260
Workflow file for this run
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: SuperDiff | |
on: | |
push: | |
branches: | |
- main | |
- ci-* | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
concurrency: | |
group: build-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
all: | |
runs-on: ubuntu-latest | |
needs: | |
- lint | |
- audit | |
- test | |
outputs: | |
PASSED: ${{ steps.set-output.outputs.PASSED }} | |
steps: | |
- name: Set PASSED output | |
id: set-output | |
run: echo "PASSED=true" >> "$GITHUB_OUTPUT" | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "yarn" | |
- name: Install Yarn dependencies | |
run: yarn --immutable | |
- name: Lint | |
run: yarn lint | |
audit: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- "3.0" | |
- "3.1" | |
- "3.2" | |
rails_appraisal: | |
- rails_6_1 | |
- rails_7_0 | |
- no_rails | |
rspec_appraisal: | |
- rspec_lt_3_10 | |
- rspec_gte_3_10 | |
env: | |
BUNDLE_GEMFILE: gemfiles/${{ matrix.rails_appraisal }}_${{ matrix.rspec_appraisal }}.gemfile | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "yarn" | |
- name: Install Yarn dependencies | |
run: yarn --immutable | |
- name: Audit | |
run: yarn audit | |
test: | |
needs: | |
- lint | |
- audit | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- "3.0" | |
- "3.1" | |
- "3.2" | |
rails_appraisal: | |
- rails_6_1 | |
- rails_7_0 | |
- no_rails | |
rspec_appraisal: | |
- rspec_lt_3_10 | |
- rspec_gte_3_10 | |
env: | |
BUNDLE_GEMFILE: gemfiles/${{ matrix.rails_appraisal }}_${{ matrix.rspec_appraisal }}.gemfile | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Run tests | |
run: bundle exec rake --trace |