From bb5bab108b3f49a8d715e8830c518e32108ea40a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Torres?= <43612178+JuanJTorres11@users.noreply.github.com> Date: Fri, 24 May 2024 13:27:08 -0500 Subject: [PATCH] chore: remove matrix strategy --- .github/workflows/ci.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d6ce86e..f2a1b13c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,17 +46,14 @@ jobs: cover: name: Coverage needs: eslint - runs-on: ${{matrix.os}} + runs-on: ubuntu-latest timeout-minutes: 10 - strategy: - matrix: - os: [ubuntu-20.04, ubuntu-22.04, ubuntu-latest, macos-latest] steps: - name: Set running flag run: echo "RUNNING=1" >> $GITHUB_ENV - uses: actions/checkout@v4 - uses: technote-space/get-git-comment-action@v1 - - uses: PlatziDev/get-diff-action@gh-actions + - uses: technote-space/get-diff-action@v6.1.2 with: PATTERNS: +(src|__tests__)/**/*.+(js|ts|snap) FILES: | @@ -68,13 +65,13 @@ jobs: run: echo "RUNNING=" >> $GITHUB_ENV if: "! env.GIT_DIFF" - name: Set running flag - if: "matrix.os == 'ubuntu-latest' && ! startsWith(github.ref, 'refs/tags/') && github.event.base_ref == format('refs/heads/{0}', github.event.repository.default_branch)" + if: "! startsWith(github.ref, 'refs/tags/') && github.event.base_ref == format('refs/heads/{0}', github.event.repository.default_branch)" run: echo "RUNNING=1" >> $GITHUB_ENV - name: Set running flag - if: "matrix.os == 'ubuntu-latest' && ! startsWith(github.ref, 'refs/tags/') && startsWith(github.base_ref, 'refs/heads/develop/v')" + if: "! startsWith(github.ref, 'refs/tags/') && startsWith(github.base_ref, 'refs/heads/develop/v')" run: echo "RUNNING=1" >> $GITHUB_ENV - name: Set running flag - if: matrix.os == 'ubuntu-latest' && startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') run: echo "RUNNING=1" >> $GITHUB_ENV - name: Set running flag run: | @@ -101,7 +98,6 @@ jobs: env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} COVERAGE_FILE: ./coverage/lcov.info - if: env.RUNNING && matrix.os == 'ubuntu-latest' release: name: Release GitHub Actions