Skip to content

Commit 401b3d2

Browse files
committed
ci: Update the yml to test on their respective branches
1 parent a3ec5cd commit 401b3d2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,19 @@ on:
55
branches:
66
- main
77
- 'ci*'
8+
- 'front-end'
9+
- 'api'
810
pull_request:
911
branches:
1012
- main
1113
- 'ci*'
14+
- 'front-end'
15+
- 'api'
1216

1317
jobs:
1418
test-api-linux:
1519
name: API Test (Linux)
20+
if: github.ref_name == 'api' || (github.ref_name != 'api' && github.ref_name != 'front-end')
1621
runs-on: ubuntu-latest
1722

1823
strategy:
@@ -35,6 +40,7 @@ jobs:
3540

3641
test-frontend-linux:
3742
name: Frontend Test (Linux)
43+
if: github.ref_name == 'front-end' || (github.ref_name != 'api' && github.ref_name != 'front-end')
3844
runs-on: ubuntu-latest
3945

4046
strategy:
@@ -57,6 +63,7 @@ jobs:
5763

5864
test-api-windows:
5965
name: API Test (Windows)
66+
if: github.ref_name == 'api' || (github.ref_name != 'api' && github.ref_name != 'front-end')
6067
runs-on: windows-latest
6168

6269
strategy:
@@ -79,6 +86,7 @@ jobs:
7986

8087
test-frontend-windows:
8188
name: Frontend Test (Windows)
89+
if: github.ref_name == 'front-end' || (github.ref_name != 'api' && github.ref_name != 'front-end')
8290
runs-on: windows-latest
8391

8492
strategy:

0 commit comments

Comments
 (0)