Skip to content

Commit 498cd9e

Browse files
author
Krzysztof Borowy
committed
run release only on push
1 parent d68a48d commit 498cd9e

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
review:
99
name: Review
1010
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
test-name: [lint, ts]
1114
steps:
1215
- name: Checkout
1316
uses: actions/checkout@v3
@@ -17,14 +20,9 @@ jobs:
1720
node-version: 16
1821
cache: yarn
1922
- name: Install JS dependencies
20-
run: |
21-
yarn
22-
- name: Lint
23-
run: |
24-
yarn test:lint
25-
- name: TypeScript
26-
run: |
27-
yarn test:ts
23+
run: yarn --frozen-lockfile
24+
- name: Run test ${{ matrix.test-name }}
25+
run: yarn test:${{ matrix.test-name }}
2826
android:
2927
name: Android
3028
runs-on: ubuntu-22.04
@@ -142,6 +140,7 @@ jobs:
142140
release:
143141
name: Release
144142
needs: [review, android, ios, macos, windows]
143+
if: github.event_name == 'push'
145144
runs-on: ubuntu-22.04
146145
steps:
147146
- name: Checkout

0 commit comments

Comments
 (0)