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