-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1016 Bytes
/
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
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
yarn-check:
name: yarn ${{ matrix.command }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
command: ["lint:ci", "format:ci", "build:scss"]
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