-
Notifications
You must be signed in to change notification settings - Fork 87
70 lines (66 loc) · 1.96 KB
/
check.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Check
on:
# ..any pull request, workflow dispatch and merge queue (covers main)
pull_request:
workflow_dispatch:
merge_group:
# Cron job to run checks @ 8:30 pm daily on the latest commit on the default branch - main
schedule:
- cron: '30 20 * * *'
# Cancel any in progress run of the workflow for a given PR
# This avoids building outdated code
concurrency:
# Fallback used github.ref_name as it is always defined
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
vulnerability:
name: Vulnerabilities
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/yarn-install
- run: ./scripts/ci_check_vulnerabilities.sh
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/yarn-install
- run: yarn run format:check
- run: yarn run lint
- run: yarn tsc -p .github/scripts
yarn-lock:
name: 'yarn.lock Up-to-date'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/yarn-install
- run: git diff --exit-code
licenses:
name: Licenses
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/yarn-install
- run: yarn check-licenses
knip-depcheck:
name: Dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/yarn-install
- run: yarn knip:depcheck
knip-regression:
name: Knip Regression
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: ./.github/actions/yarn-install
- run: yarn ts-node ./.github/scripts/checkKnipRegression.ts
env:
# Force color output in the terminal with chalk
# See https://github.com/chalk/supports-color/issues/106
FORCE_COLOR: 2