-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (43 loc) · 1017 Bytes
/
main.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
on:
push:
branches:
- '**'
jobs:
Lint_check:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: enable corepack
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- name: setup yarn
run: corepack enable
- name: yarn set version
run: yarn set version stable
- name: yarn install
run: yarn install --frozen-lockfile
- name: run lint
run: yarn lint
format_check:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: enable corepack
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- name: setup yarn
run: corepack enable
- name: yarn set version
run: yarn set version stable
- name: yarn install packages
run: yarn install --frozen-lockfile
- name: execute prettier
run: yarn exec prettier -c .