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-06-14 00:19:21 +00:00
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
2024-09-20 02:00:24 +00:00
|
|
|
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # 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-10-02 00:51:25 +00:00
|
|
|
- uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
|
2023-10-30 23:40:44 +00:00
|
|
|
env:
|
|
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|