2022-12-05 02:28:04 +03:00
|
|
|
name: ci
|
|
|
|
|
2023-01-13 14:54:59 +03:00
|
|
|
permissions: {}
|
|
|
|
|
2022-12-05 02:28:04 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-01-04 18:37:19 +03:00
|
|
|
workflow_dispatch: {}
|
2022-12-05 02:28:04 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- run: corepack enable
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
2023-01-04 18:37:19 +03:00
|
|
|
node-version: 18
|
2022-12-05 02:28:04 +03:00
|
|
|
cache: pnpm
|
|
|
|
|
|
|
|
- name: 📦 Install dependencies
|
|
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
|
|
|
|
- name: 🚧 Set up project
|
|
|
|
run: pnpm nuxi prepare
|
|
|
|
|
|
|
|
- name: 🧪 Test project
|
|
|
|
run: pnpm test
|
|
|
|
|
2022-12-05 08:04:18 +03:00
|
|
|
- name: 📝 Lint
|
|
|
|
run: pnpm lint
|
|
|
|
|
2022-12-05 02:28:04 +03:00
|
|
|
- name: 💪 Type check
|
|
|
|
run: pnpm test:typecheck
|