From 0da8ef5bd3bbd96229d3447a85c9f58049bbc64a Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sat, 24 May 2025 16:11:34 -0700 Subject: [PATCH] Split up workflow into 2 jobs --- .github/workflows/ci.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 13ddf72..1f704e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,23 +6,25 @@ on: branches: [master] jobs: + danger: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.4.4 + - name: Install dependencies + run: bundle install --jobs 4 --retry 3 + - name: Run danger + env: + DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: bundle exec danger + test: runs-on: ubuntu-latest strategy: matrix: - include: - - ruby-version: 3.4.4 - command: bundle exec danger - - - ruby-version: 3.4.4 - command: bundle exec rake - - ruby-version: 3.3.8 - command: bundle exec rake - - ruby-version: 3.2.8 - command: bundle exec rake - - ruby-version: 3.1.7 - command: bundle exec rake - + ruby-version: [3.4.4, 3.3.8, 3.2.8, 3.1.7] steps: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 @@ -30,7 +32,5 @@ jobs: ruby-version: ${{ matrix.ruby-version }} - name: Install dependencies run: bundle install --jobs 4 --retry 3 - - name: Run command - env: - DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: ${{ matrix.command }} + - name: Run tests + run: bundle exec rake