-
Notifications
You must be signed in to change notification settings - Fork 146
49 lines (44 loc) · 1.3 KB
/
lint-and-test.yml
File metadata and controls
49 lines (44 loc) · 1.3 KB
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
45
46
47
48
49
name: Run Tests, Lint, and Check Types
run-name: ${{github.event.pull_request.title}} (${{ github.event.pull_request.number }}) by @${{ github.triggering_actor }} (Attempt ${{ github.run_attempt }})
on:
push:
branches: [main]
pull_request:
branches: [main, 'codefreeze-*']
paths-ignore:
- '**.md'
- 'LICENSE'
- 'CODEOWNERS'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Checkout and Setup Node
uses: ./.github/actions/setup-node
- name: Lint
run: pnpm run --if-present lint:ci
check-types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Checkout and Setup Node
uses: ./.github/actions/setup-node
- name: Check Types
run: pnpm run check
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Checkout and Setup Node
uses: ./.github/actions/setup-node
- name: Run Unit Tests
run: pnpm test