feat: adding format checker for PRs

This commit is contained in:
Simon Hyll
2024-05-24 01:05:12 +02:00
parent e2b2ad19ed
commit 89721a14d7
2 changed files with 24 additions and 1 deletions

23
.github/workflows/check.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
# Adapted from https://github.com/withastro/starlight/blob/main/.github/workflows/format.yml
name: Format on PR
on:
pull_request:
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Check out code using Git
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 9
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
- run: pnpm i
- name: Format with Prettier
run: pnpm format

View File

@@ -19,7 +19,7 @@ jobs:
token: ${{ secrets.ORG_TAURI_BOT_PAT }}
- uses: pnpm/action-setup@v2
with:
version: 8
version: 9
- uses: actions/setup-node@v3
with:
node-version: 16