elk/.github/workflows/ci.yml
2023-12-22 21:50:59 +00:00

40 lines
687 B
YAML

name: ci
permissions: {}
on:
push:
branches:
- main
pull_request:
branches:
- main
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: 18
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
- name: 📝 Lint
run: pnpm lint
- name: 💪 Type check
run: pnpm test:typecheck