File tree 6 files changed +11
-32
lines changed
6 files changed +11
-32
lines changed Original file line number Diff line number Diff line change 1
1
name : Download Builds
2
2
description : Downloading the github artifact created with the build (dist folder)
3
3
4
- inputs :
5
- sha :
6
- description : ' SHA to use for the artifact name'
7
- required : false
8
- default : ${{ github.sha }}
9
-
10
4
runs :
11
5
using : composite
12
6
steps :
13
7
- name : Download dist folder
14
8
uses : actions/download-artifact@v4
15
9
with :
16
- name : library-dist-${{ inputs.sha }}
10
+ name : library-dist
17
11
path : dist
Original file line number Diff line number Diff line change 1
1
name : Download Coverage Reports
2
2
description : Download the github artifact created with the `test --coverage`
3
3
4
- inputs :
5
- sha :
6
- description : ' SHA to use for the artifact name'
7
- required : false
8
- default : ${{ github.sha }}
9
-
10
4
runs :
11
5
using : composite
12
6
steps :
13
7
- name : Download coverage report
14
8
uses : actions/download-artifact@v4
15
9
with :
16
- name : ngx-deploy-npm-coverage-report-${{ inputs.sha }}
10
+ name : ngx-deploy-npm-coverage-report
17
11
path : coverage/packages/ngx-deploy-npm
Original file line number Diff line number Diff line change 1
1
name : Download Lint Reports
2
2
description : Download the github artifact with the lint report
3
3
4
- inputs :
5
- sha :
6
- description : ' SHA to use for the artifact name'
7
- required : false
8
- default : ${{ github.sha }}
9
-
10
4
runs :
11
5
using : composite
12
6
steps :
13
7
- name : Download lint report
14
8
uses : actions/download-artifact@v4
15
9
with :
16
- name : lint-report-${{ inputs.sha }}
10
+ name : lint-report
17
11
path : reports
Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ 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
-
8
5
jobs :
9
6
lint :
10
7
runs-on : ubuntu-latest
21
18
- name : Archive lint report results
22
19
uses : actions/upload-artifact@v4
23
20
with :
24
- name : lint-report-${{ env.COMMIT_SHA }}
21
+ name : lint-report
25
22
path : reports
26
23
27
24
build :
35
32
- name : Archive build result
36
33
uses : actions/upload-artifact@v4
37
34
with :
38
- name : library-dist-${{ env.COMMIT_SHA }}
35
+ name : library-dist
39
36
path : dist
40
37
41
38
unit-test :
65
62
name : Archive coverage report
66
63
uses : actions/upload-artifact@v4
67
64
with :
68
- name : ngx-deploy-npm-coverage-report-${{ env.COMMIT_SHA }}
65
+ name : ngx-deploy-npm-coverage-report
69
66
path : coverage/packages/ngx-deploy-npm/lcov.info
Original file line number Diff line number Diff line change 16
16
- name : Archive build result
17
17
uses : actions/upload-artifact@v4
18
18
with :
19
- name : library-dist-${{ github.sha }}
19
+ name : library-dist
20
20
path : dist
21
21
22
22
backwards-compatibility-test :
Original file line number Diff line number Diff line change @@ -75,19 +75,19 @@ jobs:
75
75
76
76
// Download both artifacts
77
77
await Promise.all([
78
- downloadArtifact(` ngx-deploy-npm-coverage-report-${sha}` ),
79
- downloadArtifact(` lint-report-${sha}` )
78
+ downloadArtifact(' ngx-deploy-npm-coverage-report' ),
79
+ downloadArtifact(' lint-report' )
80
80
]);
81
81
82
82
- name : ' Extract reports'
83
83
run : |
84
84
# Extract coverage report
85
85
mkdir -p coverage/packages/ngx-deploy-npm
86
- unzip ngx-deploy-npm-coverage-report-* .zip -d coverage/packages/ngx-deploy-npm
86
+ unzip ngx-deploy-npm-coverage-report.zip -d coverage/packages/ngx-deploy-npm
87
87
88
88
# Extract lint report
89
89
mkdir -p reports
90
- unzip lint-report-* .zip -d reports
90
+ unzip lint-report.zip -d reports
91
91
92
92
- name : SonarCloud Scan
93
93
uses : sonarsource/sonarcloud-github-action@master
You can’t perform that action at this time.
0 commit comments