mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-06 12:57:44 +00:00
chore: add improved CI workflow
This commit is contained in:
37
.github/workflows/test.yml
vendored
37
.github/workflows/test.yml
vendored
@@ -3,7 +3,7 @@ name: test
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
test-lint-build:
|
||||
test:
|
||||
env:
|
||||
CI: true
|
||||
runs-on: ubuntu-latest
|
||||
@@ -19,7 +19,38 @@ jobs:
|
||||
run: npm ci
|
||||
|
||||
- name: Test
|
||||
run: npm test
|
||||
run: npm run test
|
||||
tsc:
|
||||
env:
|
||||
CI: true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js 16.x
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16.x
|
||||
cache: npm
|
||||
|
||||
- name: Lint
|
||||
- name: Install Dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Check TypeScript
|
||||
run: npm run tsc
|
||||
lint:
|
||||
env:
|
||||
CI: true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js 16.x
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16.x
|
||||
cache: npm
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run Linting
|
||||
run: npm run lint
|
||||
|
||||
@@ -26,7 +26,8 @@
|
||||
"host:local": "cd dist && ws --http2 --compress",
|
||||
"format": "prettier -w . --cache --plugin-search-dir=.",
|
||||
"lint": "eslint . --ext .js,.ts,.astro",
|
||||
"tsc": "tsc --noEmit && astro check"
|
||||
"tsc": "tsc --noEmit && astro check",
|
||||
"test": ""
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astrojs/image": "^0.7.1",
|
||||
|
||||
Reference in New Issue
Block a user