mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-01-08 00:20:43 +08:00
34 lines
546 B
YAML
34 lines
546 B
YAML
name: ci
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- run: corepack enable
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm i
|
|
|
|
- name: Run linters
|
|
run: pnpm lint
|
|
|
|
- name: Run unit test
|
|
run: pnpm test
|
|
|
|
- name: Type check
|
|
run: pnpm typecheck
|
|
|
|
- name: Build the app
|
|
run: pnpm build
|