File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 35
35
name : library-dist-${{ github.sha }}
36
36
path : dist
37
37
38
+ set-node-version :
39
+ runs-on : ubuntu-latest
40
+ steps :
41
+ - name : Checkout repository
42
+ uses : actions/checkout@v4
43
+
44
+ - name : Set Node.js version based on .nvmrc
45
+ id : set-node-version
46
+ run : |
47
+ version=$(cat .nvmrc)
48
+ echo "NODE_VERSION=$version" >> $GITHUB_ENV
49
+ echo "::set-output name=node_version::$version"
50
+
38
51
unit-test :
52
+ needs : set-node-version
39
53
strategy :
40
54
matrix :
41
55
os : [ubuntu-latest, windows-latest]
49
63
50
64
- run : npx nx test ngx-deploy-npm --configuration="ci"
51
65
52
- - if : ${{ matrix.os == 'ubuntu-latest' }}
66
+ - name : Set Node.js version based on .nvmrc
67
+ shell : bash
68
+ run : |
69
+ version=$(cat .nvmrc)
70
+ echo "Setting default value for node-version parameter: $version"
71
+ echo "NODE_VERSION=$version" >> $GITHUB_ENV
72
+
73
+ - if : ${{ matrix.os == 'ubuntu-latest' && matrix.node-version == needs.set-node-version.outputs.node_version }}
53
74
name : Archive coverage report
54
75
uses : actions/upload-artifact@v4
55
76
with :
You can’t perform that action at this time.
0 commit comments