-
Notifications
You must be signed in to change notification settings - Fork 457
42 lines (39 loc) · 1.11 KB
/
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
39
40
41
42
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
container:
image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: installing dependencies
run: |
yarn install --frozen-lockfile
- name: run prettier
run: |
yarn lint:prettier
lint:
runs-on: ubuntu-latest
container:
image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: installing dependencies
run: |
yarn install --frozen-lockfile
- name: run workspace linting
run: |
yarn lint:workspace