File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,9 +2,22 @@ name: Node.js CI
22on : push
33jobs :
44 test :
5- uses : activeprospect/github-action-workflows/.github/workflows/test.yml@master
6- with :
7- codecov : true
8- secrets :
5+ runs-on : ubuntu-latest
6+ strategy :
7+ matrix :
8+ node-version : [20.x, 24.x]
9+ env :
910 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
10- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
11+ steps :
12+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
13+
14+ - name : Use Node.js ${{ matrix.node-version }}
15+ uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
16+ with :
17+ node-version : ${{ matrix.node-version }}
18+ - run : npm install
19+ - name : Run tests
20+ run : npx nyc@17.1.0 --reporter=lcov npm test
21+ - uses : codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
22+ with :
23+ token : ${{ secrets.CODECOV_TOKEN }}
You can’t perform that action at this time.
0 commit comments