-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (51 loc) · 1.58 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
name: code check
on: [pull_request]
jobs:
merge-gatekeeper:
name: Mergeability
runs-on: ubuntu-latest
permissions:
checks: read
statuses: read
steps:
- name: Run Merge Gatekeeper
uses: upsidr/merge-gatekeeper@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
self: Mergeability
actionlint:
name: lint github actions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: reviewdog/action-actionlint@v1
yarn-check:
name: yarn ${{ matrix.command }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
command: ["lint:ci", "format:ci", "build:scss", "build:ts", "test:coverage"]
steps:
- uses: actions/checkout@v4
- name: Set node package manager
run: corepack enable
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: 'yarn'
- name: Install project dependencies
run: yarn install --immutable --immutable-cache
- name: Check ${{ matrix.command }}
run: yarn ${{ matrix.command }}
env:
FORCE_COLOR: 2
CONDITION: always()
CONDITION2: ${{ matrix.command == 'test:coverage' }}
CONDITION3: ${{ matrix.command == 'test:coverage' }} && always()
- name: 'Report Coverage'
if: matrix.command == 'test:coverage' && always()
uses: davelosert/vitest-coverage-report-action@v2
with:
json-summary-path : './src/__tests__/coverage/coverage-summary.json'