File tree 1 file changed +8
-4
lines changed 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: Essential Test
2
2
3
3
on : workflow_call
4
4
5
+ env :
6
+ COMMIT_SHA : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
7
+
5
8
jobs :
6
9
lint :
7
10
runs-on : ubuntu-latest
18
21
- name : Archive lint report results
19
22
uses : actions/upload-artifact@v4
20
23
with :
21
- name : lint-report-${{ github.sha }}
24
+ name : lint-report-- ${{ env.COMMIT_SHA }}
22
25
path : reports
23
26
24
27
build :
@@ -32,13 +35,14 @@ jobs:
32
35
- name : Archive build result
33
36
uses : actions/upload-artifact@v4
34
37
with :
35
- name : library-dist-${{ github.sha }}
38
+ name : library-dist-- ${{ env.COMMIT_SHA }}
36
39
path : dist
37
40
38
41
unit-test :
39
42
strategy :
40
43
matrix :
41
- os : [ubuntu-latest, windows-latest]
44
+ os : [ubuntu-latest] # to have test faster
45
+ # os: [ubuntu-latest, windows-latest]
42
46
node-version : [20, 22]
43
47
runs-on : ${{ matrix.os }}
44
48
steps :
61
65
name : Archive coverage report
62
66
uses : actions/upload-artifact@v4
63
67
with :
64
- name : ngx-deploy-npm-coverage-report-${{ github.sha }}
68
+ name : ngx-deploy-npm-coverage-report-${{ env.COMMIT_SHA }}
65
69
path : coverage/packages/ngx-deploy-npm/lcov.info
You can’t perform that action at this time.
0 commit comments