-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1.36 KB
/
integration.yaml
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: Continuous Integration
on:
push:
jobs:
commitlint:
name: CommitLint
if: github.event.action != 'closed' || github.event.pull_request.merged != true
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install commitlint
run: |
bun install conventional-changelog-conventionalcommits
bun install commitlint@latest
- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: bunx commitlint --last --verbose
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: bunx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
check:
name: Code Check
runs-on: ubuntu-24.04
if: github.event.action != 'closed' || github.event.pull_request.merged != true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Format
run: |
bunx @biomejs/biome format src
- name: Lint
run: |
bunx @biomejs/biome lint src