Skip to content

Instantly share code, notes, and snippets.

@myl7
Created August 23, 2023 12:24
Show Gist options
  • Save myl7/0f36152d3219169479910a0b5a9007ab to your computer and use it in GitHub Desktop.
Save myl7/0f36152d3219169479910a0b5a9007ab to your computer and use it in GitHub Desktop.
GitHub Actions Node + pnpm basic CI
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'pnpm'
- run: pnpm install
- run: npm run format:check
- run: npm run lint
- run: npm run test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment