File tree 2 files changed +32
-30
lines changed
2 files changed +32
-30
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on : push
4
+
5
+ jobs :
6
+ test :
7
+ uses : ./.github/workflows/test.yml
8
+ release :
9
+ runs-on : ubuntu-latest
10
+ needs :
11
+ - test
12
+ if : github.ref == 'refs/heads/master'
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - name : npm install
16
+ run : npm install
17
+ - name : Build
18
+ run : npm run build
19
+ - name : Release
20
+ uses : cycjimmy/semantic-release-action@v3
21
+ with :
22
+ extra_plugins : |
23
+ @semantic-release/changelog
24
+ @semantic-release/git
25
+ branch : master
26
+ env :
27
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
- name : CI
2
-
3
- on : push
4
-
1
+ name : Run tests
2
+ on : workflow_call
5
3
jobs :
6
4
unit-test :
7
5
runs-on : ubuntu-latest
16
14
run : npm ci
17
15
- name : Unit tests
18
16
run : npm run test:unit
19
-
17
+
20
18
integration-test :
21
19
runs-on : ubuntu-latest
22
20
name : Integration Tests
55
53
- name : build
56
54
run : npm run build
57
55
- name : run tests
58
- run : npm run test:e2e
59
-
60
- release :
61
- runs-on : ubuntu-latest
62
- needs :
63
- - unit-test
64
- - integration-test
65
- - e2e-test
66
- if : github.ref == 'refs/heads/master'
67
- steps :
68
- - uses : actions/checkout@v4
69
- - name : npm install
70
- run : npm install
71
- - name : Build
72
- run : npm run build
73
- - name : Release
74
- uses : cycjimmy/semantic-release-action@v3
75
- with :
76
- extra_plugins : |
77
- @semantic-release/changelog
78
- @semantic-release/git
79
- branch : master
80
- env :
81
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
82
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
56
+ run : npm run test:e2e
You can’t perform that action at this time.
0 commit comments