File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 7272 - name : Lint API
7373 run : yarn lint-api
7474
75+ test-unit-coverage :
76+ needs : build
77+ runs-on : ubuntu-latest
78+ timeout-minutes : 10
79+ steps :
80+ - uses : actions/checkout@v3
81+ - name : Use Node.js 18.x
82+ uses : actions/setup-node@v3
83+ with :
84+ node-version : 18.x
85+ cache : ' yarn'
86+ - name : Install dependencies
87+ run : |
88+ yarn --frozen-lockfile
89+ yarn install-addons
90+ - uses : actions/download-artifact@v3
91+ with :
92+ name : build-artifacts
93+ - name : Unzip artifacts (Linux, macOS)
94+ if : runner.os != 'Windows'
95+ run : unzip -o compressed-build.zip
96+ - name : Unzip artifacts (Windows)
97+ if : runner.os == 'Windows'
98+ run : 7z x compressed-build.zip -aoa -o${{ github.workspace }}
99+ - name : Print directory structure
100+ run : ls -R
101+ - name : Unit test coverage
102+ run : |
103+ yarn test-unit-coverage --forbid-only
104+ EXIT_CODE=$?
105+ ./node_modules/.bin/nyc report --reporter=cobertura
106+ exit $EXIT_CODE
107+
75108 test-unit-parallel :
76109 timeout-minutes : 20
77110 strategy :
You can’t perform that action at this time.
0 commit comments