From 498cd9ed02c6906d01e2ee2cc53b77c2b5cb8f59 Mon Sep 17 00:00:00 2001 From: Krzysztof Borowy Date: Tue, 6 Jun 2023 10:26:03 +0200 Subject: [PATCH 1/2] run release only on push --- .github/workflows/ci.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3eb760d1..a25faf1c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,9 @@ jobs: review: name: Review runs-on: ubuntu-latest + strategy: + matrix: + test-name: [lint, ts] steps: - name: Checkout uses: actions/checkout@v3 @@ -17,14 +20,9 @@ jobs: node-version: 16 cache: yarn - name: Install JS dependencies - run: | - yarn - - name: Lint - run: | - yarn test:lint - - name: TypeScript - run: | - yarn test:ts + run: yarn --frozen-lockfile + - name: Run test ${{ matrix.test-name }} + run: yarn test:${{ matrix.test-name }} android: name: Android runs-on: ubuntu-22.04 @@ -142,6 +140,7 @@ jobs: release: name: Release needs: [review, android, ios, macos, windows] + if: github.event_name == 'push' runs-on: ubuntu-22.04 steps: - name: Checkout From 2e1fb1a0d6326c34d9ca9ca8f89e18309b656b5a Mon Sep 17 00:00:00 2001 From: Krzysztof Borowy Date: Tue, 6 Jun 2023 10:30:08 +0200 Subject: [PATCH 2/2] future, I guess :D --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a25faf1c..e0f20815 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: node-version: 16 cache: yarn - name: Install JS dependencies - run: yarn --frozen-lockfile + run: yarn - name: Run test ${{ matrix.test-name }} run: yarn test:${{ matrix.test-name }} android: