ci: add github actions for linting & type-checking

This commit is contained in:
Hiroki Osame
2023-02-15 20:55:25 +09:00
parent c017ff5600
commit 7ce11b9ddb

33
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: Test
on:
push:
branches: [main]
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.2
with:
version: 7
run_install: true
- name: Type check
run: pnpm build
- name: Lint
run: pnpm lint