Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Comet-Robotics/chessBot int…
Browse files Browse the repository at this point in the history
…o 76-server-move-chessjs-to-seperate-classfile
  • Loading branch information
adamabsa123 committed Feb 10, 2024
2 parents a2755ce + af3e515 commit 5d2398a
Show file tree
Hide file tree
Showing 158 changed files with 2,290 additions and 20,920 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: build-documentation
on:
pull_request:
branches:
- main
types:
- closed
jobs:
typedoc:
if: github.event.pull_request.merged
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn

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

- name: Run typedoc
run: yarn typedoc

- uses: actions/upload-pages-artifact@v3
with:
path: docs

# Deploy job
deploy:
if: github.event.pull_request.merged
# Add a dependency to the build job
needs: typedoc

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
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.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ dist-ssr
*.sw?
.vs/*
*.wsuo
docs/
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
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"tabWidth": 4,
"singleQuote": false,
"experimentalTernaries": true
}
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"recommendations": [
"streetsidesoftware.code-spell-checker",
"Orta.vscode-jest"
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint"
]
}
21 changes: 16 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,19 @@
"npm.packageManager": "yarn",
"task.allowAutomaticTasks": "off",
"task.autoDetect": "off",
"jest.runMode": "on-demand",
"cSpell.words": [
"Premoves"
],
}
"cSpell.words": ["Premoves"],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.formatOnSave": true
}
6 changes: 6 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
"type": "npm",
"script": "install",
"problemMatcher": []
},
{
"label": "Run tests",
"type": "npm",
"script": "test",
"problemMatcher": []
}
]
}
23 changes: 0 additions & 23 deletions chess-bot-client/.gitignore

This file was deleted.

70 changes: 0 additions & 70 deletions chess-bot-client/README.md

This file was deleted.

Loading

0 comments on commit 5d2398a

Please sign in to comment.