Skip to content

Commit

Permalink
CI: Add GitHub action to check project formatting
Browse files Browse the repository at this point in the history
Prettier is used to validate file formatting rules. CI job fails if files are not properly formatted.
  • Loading branch information
ryru committed Jun 7, 2024
1 parent 38d9290 commit 1644c49
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Verify project

on:
pull_request:
branches: ["main"]
push:
workflow_dispatch:

jobs:
verify:
runs-on: ubuntu-latest

steps:
- name: Check out project
uses: actions/checkout@v3

- name: Check project formating
uses: creyD/[email protected]
with:
prettier_options: --check .

0 comments on commit 1644c49

Please sign in to comment.