Skip to content

Commit 699492c

Browse files
committed
add github configuration
1 parent e55c9ba commit 699492c

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
name: Node.js CI
3+
on: push
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
node-version: [20.x]
10+
env:
11+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Use Node.js ${{ matrix.node-version }}
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: ${{ matrix.node-version }}
18+
- run: npm install
19+
- name: Run tests
20+
run: npx nyc@latest --reporter=lcov npm test
21+
- uses: codecov/codecov-action@v4
22+
with:
23+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)