personal-website/.github/workflows/ci.yml
2024-03-13 15:17:11 +08:00

31 lines
470 B
YAML

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set pnpm
uses: pnpm/action-setup@v3
- name: Set node
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm lint