-
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (31 loc) · 784 Bytes
/
pr.yml
File metadata and controls
35 lines (31 loc) · 784 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
35
name: Code quality verification
on:
merge_group:
types: [checks_requested]
pull_request:
types:
- "opened"
- "synchronize"
jobs:
format:
runs-on: ubuntu-latest
if: "${{ github.event_name == 'pull_request' }}"
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: ".node-version"
- name: Format files
run: make format
- uses: stefanzweifel/git-auto-commit-action@v7
name: Commit possible changes
with:
commit_message: "style: format files using prettier"
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Build the project
run: make build