diff --git a/.github/workflows/tests.yml b/.github/workflows/quality-checks.yml similarity index 56% rename from .github/workflows/tests.yml rename to .github/workflows/quality-checks.yml index 7d984c3..ad66f72 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/quality-checks.yml @@ -1,10 +1,12 @@ -name: tests +name: quality checks on: + pull_request: + branches: + - master push: branches: - master - - master/* paths: - src/**.ts - package.json @@ -22,3 +24,14 @@ jobs: - run: | npm install --silent npm test + + fmt: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + - run: | + npm install --silent + npm run fmt:check diff --git a/package.json b/package.json index 938fd40..19550b6 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "prebuild": "tsc --build --clean", "build": "tsc --build", "fmt": "dprint fmt", + "fmt:check": "dprint check", "typecheck": "tsc --noEmit", "version": "git checkout develop && npm test", "postversion": "echo 'Now run npm run build && npm publish'",