-
-
Notifications
You must be signed in to change notification settings - Fork 14
61 lines (54 loc) · 1.46 KB
/
push_code_linting.yml
File metadata and controls
61 lines (54 loc) · 1.46 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Code Linting Annotation
on:
pull_request:
branches:
- main
- next
- beta
- "*.x"
push:
branches:
- main
- next
- beta
- "*.x"
concurrency:
group: ci-linting-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
biome_annotation:
name: runner / biome
if: (!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci'))
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write
actions: write
statuses: write
checks: write
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v6.0.2
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest
- name: Run Biome lint
run: biome lint ./src/ ./__tests__/
- name: Install compatible Nodejs version
id: setup-node
uses: ./.github/actions/setup-node
- name: Install Deps
run: npm install
- uses: xt0rted/markdownlint-problem-matcher@v3.0.0
- run: npm run lint:markdown
continue-on-error: true
- name: Biome reviewdog
uses: mongolyy/reviewdog-action-biome@v2
with:
reporter: github-pr-review
github_token: ${{ secrets.GITHUB_TOKEN }}
fail_level: error