Skip to content

Commit

Permalink
Format workflow (#81)
Browse files Browse the repository at this point in the history
Added formatting check workflow.
  • Loading branch information
AlexKempen authored Feb 6, 2024
1 parent 8ad671b commit 573245d
Show file tree
Hide file tree
Showing 132 changed files with 115,445 additions and 19,729 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: validate
on:
push:
branches:
- "*"
pull_request:
branches:
- main

jobs:
check-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
cache: yarn

- name: Install modules
run: yarn install --frozen-lockfile

- name: Check formatting
run: yarn format-check

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
cache: yarn

- name: Install modules
run: yarn install --frozen-lockfile

- name: Run tests
run: yarn test
17 changes: 0 additions & 17 deletions .github/workflows/main.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
chessBotArduino
yarn.lock
docs
File renamed without changes.
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.formatOnSave": true
}
Loading

0 comments on commit 573245d

Please sign in to comment.