From b1eaf1976948e62931f9d622bbfdf16c2bb02c33 Mon Sep 17 00:00:00 2001 From: Elliot Winkler Date: Sat, 3 Feb 2024 16:14:11 -0700 Subject: [PATCH] Run Zeus on CI --- .github/workflows/super_diff.yml | 154 +++++++++++++++++-------------- 1 file changed, 83 insertions(+), 71 deletions(-) diff --git a/.github/workflows/super_diff.yml b/.github/workflows/super_diff.yml index 73d7a9d4..126d0d32 100644 --- a/.github/workflows/super_diff.yml +++ b/.github/workflows/super_diff.yml @@ -12,51 +12,88 @@ 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: + #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" + #- "3.1" + #- "3.2" rails_appraisal: - rails_6_1 - - rails_7_0 - - no_rails + #- rails_7_0 + #- no_rails rspec_appraisal: - rspec_lt_3_10 - - rspec_gte_3_10 + #- rspec_gte_3_10 env: BUNDLE_GEMFILE: gemfiles/${{ matrix.rails_appraisal }}_${{ matrix.rspec_appraisal }}.gemfile steps: @@ -66,42 +103,17 @@ jobs: 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 + - name: Install Zeus + run: gem install zeus + - name: Start Zeus + run: zeus start & + uses: JarvusInnovations/background-action@v1 with: - ruby-version: ${{ matrix.ruby }} - bundler-cache: true + 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