Skip to content

Commit

Permalink
Merge pull request #22 from Ubugeeei/10-git-hub-actions
Browse files Browse the repository at this point in the history
#10 git hub actions
  • Loading branch information
ubugeeei authored Oct 14, 2023
2 parents 9f112c7 + 6c21f3c commit 8e3faa6
Show file tree
Hide file tree
Showing 3 changed files with 822 additions and 532 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build and Test

on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test_and_build_and:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.2.2
with:
version: 8
- name: install dependencies
run: pnpm i
- name: check spells
run: pnpm run spell-check
- name: check formats
run: pnpm run fmt . --check
- name: check lint
run: pnpm run lint .
- name: build
run: pnpm run build
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"scripts": {
"prepare": "husky install",
"build": "node scripts/build.js",
"fmt": "prettier --write",
"fmt": "prettier",
"lint": "ESLINT_USE_FLAT_CONFIG=true eslint",
"spell-check": "cspell lint \"**\" --no-progress --show-suggestions --show-context --cache"
},
Expand Down
Loading

0 comments on commit 8e3faa6

Please sign in to comment.