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