-
Notifications
You must be signed in to change notification settings - Fork 26
34 lines (33 loc) · 939 Bytes
/
lint.yaml
File metadata and controls
34 lines (33 loc) · 939 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
---
name: "Lint"
permissions:
contents: "read"
on:
push:
branches:
- "main"
pull_request:
branches:
- "*"
jobs:
lint:
name: "Lint"
runs-on: "depot-ubuntu-24.04-small"
steps:
- uses: "actions/checkout@v6"
- uses: "bahmutov/npm-install@v1"
with:
useLockFile: false
- name: "Run prettier"
run: "CI=true yarn run oxfmt --check"
- name: "Run lint"
run: "CI=true yarn lint"
- name: "Run publint"
run: "yarn build && yarn lint:package"
conventional-commits:
name: "Lint Commit Messages"
runs-on: "depot-ubuntu-24.04-small"
if: "github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' || github.event.action == 'edited')"
steps:
- uses: "actions/checkout@v6"
- uses: "webiny/action-conventional-commits@v1.3.1"