Skip to content

ci(npm): add GitHub actions npm deployment scripts #11

ci(npm): add GitHub actions npm deployment scripts

ci(npm): add GitHub actions npm deployment scripts #11

Workflow file for this run

name: Run tests
on:
push:
branches:
- main
- v2
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install dependencies
run: npm install
- name: Test
run: npm run test:cov
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}