1
0
mirror of https://github.com/elk-zone/elk synced 2024-12-05 10:18:06 +09:00
elk/.github/workflows/ci.yml

42 lines
715 B
YAML
Raw Normal View History

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