-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (42 loc) · 1011 Bytes
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Test
on:
pull_request:
push:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '20', '21' ]
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: yarn
- run: yarn install --immutable
- run: yarn qa
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
validateBundling:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- run: npm i -g @arethetypeswrong/cli
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: yarn
- run: yarn install --immutable
- run: attw --pack .
release:
needs:
- test
- validateBundling
uses: ./.github/workflows/release.yaml
secrets: inherit