2022-11-14 18:46:36 +00:00
|
|
|
name: Run tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-11-14 18:52:04 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2022-11-14 18:46:36 +00:00
|
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
2022-11-14 18:52:04 +00:00
|
|
|
release:
|
|
|
|
types: [published]
|
2022-11-14 18:46:36 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-05-21 06:39:34 +00:00
|
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
|
2024-03-01 00:04:50 +00:00
|
|
|
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
|
2022-11-14 18:46:36 +00:00
|
|
|
with:
|
2024-01-26 23:17:30 +00:00
|
|
|
node-version: 20
|
2022-11-15 15:57:34 +00:00
|
|
|
cache: "npm"
|
2022-11-14 18:46:36 +00:00
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build
|
|
|
|
- run: npm run format:check
|
|
|
|
- run: npm run lint
|
|
|
|
- run: npm run package
|
2023-06-22 07:23:18 +00:00
|
|
|
- run: npm run test
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2024-05-21 06:39:34 +00:00
|
|
|
- uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # v4
|
2023-10-30 23:40:44 +00:00
|
|
|
env:
|
|
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|