Skip to content

Commit

Permalink
chore: add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Jan 6, 2024
1 parent 37eab18 commit 206fbcb
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Node.js CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
timeout-minutes: 60
strategy:
matrix:
node-version: [12, 16, 18]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- run: npm install && npm install codecov
- run: npm run cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

0 comments on commit 206fbcb

Please sign in to comment.