-
Notifications
You must be signed in to change notification settings - Fork 454
38 lines (35 loc) · 961 Bytes
/
linting.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
name: Linting
on:
merge_group:
types: [checks_requested]
pull_request: {} # All changes need linting
workflow_call:
inputs:
concurrency_group_prefix:
default: pr
required: false
type: string
concurrency:
group: ${{ inputs.concurrency_group_prefix }}-linting-${{ github.head_ref }}
cancel-in-progress: true
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: installing dependencies
run: |
yarn install --frozen-lockfile
- name: run prettier
run: |
yarn lint:prettier
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: installing dependencies
run: |
yarn install --frozen-lockfile
- name: run workspace linting
run: |
yarn lint:workspace