use multiple jobs for ci

This commit is contained in:
MapleLeaf
2021-12-08 14:23:04 -06:00
parent 9916c37b2b
commit c7911b76c1
2 changed files with 25 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ env:
TEST_GUILD_ID: ${{ secrets.TEST_GUILD_ID }}
jobs:
the:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@@ -23,4 +23,26 @@ jobs:
node-version: "lts/*"
- run: npm i -g pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm run ci
- run: pnpm build
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
# https://github.com/actions/setup-node#supported-version-syntax
node-version: "lts/*"
- run: npm i -g pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm lint
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
# https://github.com/actions/setup-node#supported-version-syntax
node-version: "lts/*"
- run: npm i -g pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm test

View File

@@ -16,8 +16,7 @@
"lint": "eslint --ext js,ts,tsx .",
"lint-fix": "npm run lint -- --fix",
"format": "prettier --write .",
"typecheck": "tsc --noEmit",
"ci": "npm-run-all --parallel --print-label --race build lint test typecheck"
"typecheck": "tsc --noEmit"
},
"keywords": [],
"author": "itsMapleLeaf",