Skip to content

Commit

Permalink
add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgb committed Jul 26, 2023
1 parent d355a71 commit 12684ba
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/check-ts-format.yml
@@ -0,0 +1,27 @@
name: Check TypeScript Format

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

jobs:
prettier-check:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Check Formatting of Examples
run: npx prettier --check "src/**/*.ts"
working-directory: examples/

- name: Check Formatting of Examples
run: npx prettier --check "src/**/*.ts"
working-directory: tests/

0 comments on commit 12684ba

Please sign in to comment.