2022-09-04 08:26:20 +00:00
|
|
|
name: Code quality verification
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- "opened"
|
|
|
|
- "synchronize"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
format:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-09-04 11:21:31 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-09-05 08:05:38 +00:00
|
|
|
- name: Format files
|
|
|
|
run: make format
|
2022-09-04 08:26:20 +00:00
|
|
|
|
|
|
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
|
|
|
name: Commit possible changes
|
|
|
|
with:
|
|
|
|
commit_message: "style: format files using prettier"
|
|
|
|
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-04 11:21:31 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-09-04 08:26:20 +00:00
|
|
|
- name: Build the project
|
2022-09-05 08:05:38 +00:00
|
|
|
run: make build
|