regenbogenkarte/.github/workflows/pr.yml

36 lines
784 B
YAML
Raw Normal View History

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"
2022-09-05 08:05:38 +00:00
- 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
2022-09-05 08:05:38 +00:00
run: make build