generated from nhcarrigan/template
2352f45794
- Initialize pnpm project with TypeScript support - Add standard ESLint and TypeScript configurations - Create basic src/index.ts with sample export - Set up GitHub Actions CI workflow - Add prod.env with 1Password references - Configure .gitignore for Node.js projects Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
40 lines
655 B
YAML
40 lines
655 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Check dependency pinning
|
|
uses: naomi-lgbt/dependency-pin-check@main
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 9
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
cache: "pnpm"
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Run linter
|
|
run: pnpm lint
|
|
|
|
- name: Build project
|
|
run: pnpm build
|
|
|
|
- name: Run tests
|
|
run: pnpm test |