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-03-01 00:04:50 +00:00
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
|
|
|
- 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-04-04 01:18:37 +00:00
|
|
|
- uses: codecov/codecov-action@7afa10ed9b269c561c2336fd862446844e0cbf71 # v4
|
2023-10-30 23:40:44 +00:00
|
|
|
env:
|
|
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|