chronocat/.github/workflows/test.yml

36 lines
616 B
YAML
Raw Normal View History

2024-03-13 14:20:55 +00:00
name: test
on:
push:
pull_request:
workflow_dispatch:
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- name: Checkout
2024-03-13 14:51:17 +00:00
uses: actions/checkout@v4
2024-03-13 14:20:55 +00:00
with:
submodules: 'false'
fetch-depth: 0
- name: Setup Node.js
2024-03-13 14:51:17 +00:00
uses: actions/setup-node@v4
2024-03-13 14:20:55 +00:00
with:
node-version: '20.3.1'
- name: Test
run: |
2024-03-13 14:51:17 +00:00
corepack enable
yarn install --immutable
2024-03-13 14:20:55 +00:00
yarn build
yarn test
shell: bash
- name: Upload Coverage Reports to Codecov
uses: codecov/codecov-action@v3