Skip to content

Use Zeus to run integration tests on CI #272

Use Zeus to run integration tests on CI

Use Zeus to run integration tests on CI #272

Workflow file for this run

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-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: Install Zeus
run: gem install zeus
- name: Start Zeus
uses: JarvusInnovations/background-action@v1
with:
run: zeus start
wait-on: |
socket:.zeus.sock
file:.zeus.sock
wait-for: 15s
log-output-if: failure
- name: Run tests
run: bundle exec rake --trace