Skip to content

Commit

Permalink
add prettier CI check
Browse files Browse the repository at this point in the history
  • Loading branch information
cloverich committed Jan 20, 2024
1 parent c7bd1c4 commit ee2d4f3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Workflow for code checks
name: Check code

on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- run: yarn install
- run: yarn run lint:check
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"main": "main.bundle.js",
"license": "UNLICENSED",
"scripts": {
"lint:check": "prettier . --check",
"start": "node ./scripts/dev.js",
"test": "mocha -r esm -r ts-node/register src/**/*.test.ts",
"test:one": "mocha -r ts-node/register -r esm"
Expand Down

0 comments on commit ee2d4f3

Please sign in to comment.