mirror of
https://github.com/Queer-Lexikon/regenbogenkarte
synced 2024-11-25 21:50:20 +00:00
35 lines
784 B
YAML
35 lines
784 B
YAML
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@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: ".node-version"
|
|
- name: Format files
|
|
run: make format
|
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
|
name: Commit possible changes
|
|
with:
|
|
commit_message: "style: format files using prettier"
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Build the project
|
|
run: make build
|