-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
43 lines (34 loc) · 844 Bytes
/
checks.yml
File metadata and controls
43 lines (34 loc) · 844 Bytes
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
name: Checks
on:
push:
branches:
- 'main'
pull_request: {}
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
checks:
name: 'Style Checks'
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.13.0
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20.20.1
cache: 'yarn'
- name: Install
run: yarn install --immutable
- name: Lint
run: yarn lint
- name: Format
run: yarn prettier:check