2022-09-04 08:26:20 +00:00
|
|
|
name: Code quality verification
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- "opened"
|
|
|
|
- "synchronize"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
format:
|
|
|
|
runs-on: ubuntu-latest
|
2023-08-03 00:00:05 +00:00
|
|
|
permissions:
|
|
|
|
contents: write
|
2022-09-04 08:26:20 +00:00
|
|
|
|
|
|
|
steps:
|
2023-10-01 23:01:25 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-12-02 11:58:36 +00:00
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version-file: ".node-version"
|
2022-09-05 08:05:38 +00:00
|
|
|
- name: Format files
|
|
|
|
run: make format
|
2023-11-01 23:38:23 +00:00
|
|
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
2022-09-04 08:26:20 +00:00
|
|
|
name: Commit possible changes
|
|
|
|
with:
|
|
|
|
commit_message: "style: format files using prettier"
|
|
|
|
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-01 23:01:25 +00:00
|
|
|
- uses: actions/checkout@v4
|
2022-09-04 08:26:20 +00:00
|
|
|
- name: Build the project
|
2022-09-05 08:05:38 +00:00
|
|
|
run: make build
|