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