Skip to content

Commit ff226cd

Browse files
committed
CI: Add commit and biome lint to CI
This will run against all branches pushed to github and will block merges to main on failures.
1 parent 9d2e904 commit ff226cd

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/lint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Lint and Biome Check
2+
3+
# Run the workflow when code is pushed or when a pull request is created
4+
on:
5+
push:
6+
branches:
7+
- '**'
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
lint-and-biome:
14+
name: Lint Commit and Run Biome
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
# Checkout the repository so the workflow has access to the code
19+
- name: Checkout code
20+
uses: actions/checkout@v3
21+
22+
# Run the lint-commit.sh script
23+
- name: Run lint-commit.sh
24+
run: scripts/lint-commit.sh .git/COMMIT_EDITMSG
25+
26+
27+
# Run the run-biome.sh script
28+
- name: Run run-biome.sh
29+
run: scripts/run-biome.sh

0 commit comments

Comments
 (0)