-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (33 loc) · 955 Bytes
/
lint.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: Lint
run-name: Lint ${{ github.head_ref || github.run_id }}
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
# Cancel previous PR/branch runs when a new commit is pushed
concurrency:
group: ${{ github.head_ref || github.run_id }}
jobs:
lint:
name: Lint project
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
strategy:
matrix:
workdir: [/apps/server, /apps/front, /packages/docker, /packages/logger, /packages/shared]
steps:
- name: ⬇️ Checkout project code
uses: actions/checkout@v4
- name: 📦 Prepare environment
uses: ./.github/actions/prepare-env
with:
build: true
build-only-packages: true
- name: 📝 Linter check
uses: mongolyy/reviewdog-action-biome@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
biome_flags: ${{ matrix.workdir }}