Created
August 23, 2023 12:24
-
-
Save myl7/0f36152d3219169479910a0b5a9007ab to your computer and use it in GitHub Desktop.
GitHub Actions Node + pnpm basic CI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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