Skip to content

Commit 381aff9

Browse files
fix(CI): add test run on each commit
1 parent d818b96 commit 381aff9

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/CD.yml renamed to .github/workflows/CICD.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
name: Publish Package to npmjs
1+
name: CICD
22
on:
33
push:
4-
branches: [next, master]
54

65
jobs:
7-
build:
6+
test:
87
runs-on: ubuntu-latest
98
steps:
109
- name: Checkout
11-
uses: actions/checkout@v3
10+
uses: actions/checkout@v4
1211
- name: Unit tests
1312
run: |
1413
npm install
1514
npm run test
16-
- uses: actions/checkout@v3
15+
16+
build:
17+
runs-on: ubuntu-latest
18+
needs: test
19+
if: github.ref == 'refs/heads/next' || github.ref == 'refs/heads/master'
20+
steps:
1721
- name: Semantic Release
1822
uses: cycjimmy/semantic-release-action@v3
1923
id: semantic

0 commit comments

Comments
 (0)