generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (41 loc) · 958 Bytes
/
test.yml
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
name: Build
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: asdf-vm/actions/install@v3
- run: pnpm i
- name: build
run: pnpm run build:types
- name: test
id: test
if: ${{ always() }}
run: pnpm run test
- name: lint
if: ${{ always() }}
run: pnpm run lint
- name: style
if: ${{ always() }}
run: pnpm run format:check
codecov: # Send only a single coverage report per run
needs: [build]
timeout-minutes: 15
env:
CI: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: asdf-vm/actions/install@v3
- run: pnpm i
- name: test
run: pnpm run test:coverage
- name: codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}