Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 6d8f4de

Browse files
committed
ci: run test on CI
1 parent c07d333 commit 6d8f4de

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Tests CI
2+
3+
on: [push]
4+
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: ['16', '20']
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: yarn install, build and run tests
20+
run: |
21+
yarn install --frozen-lockfile
22+
yarn build
23+
yarn test --coverage
24+
- name: Upload coverage reports to Codecov
25+
uses: codecov/codecov-action@v3
26+
with:
27+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
.DS_Store
22
node_modules
33
dist
4+
coverage
45

56
# Remove some common IDE working directories
67
.idea
78
.vscode
89
.env
9-
.history
10+
.history

0 commit comments

Comments
 (0)