Skip to content

Instantly share code, notes, and snippets.

@elshanx
Created November 21, 2021 14:57
Show Gist options
  • Save elshanx/4e0a5adf565def404ef0af9dceae44f0 to your computer and use it in GitHub Desktop.
Save elshanx/4e0a5adf565def404ef0af9dceae44f0 to your computer and use it in GitHub Desktop.
Github action for PRs to check if it builds without errors before merging to main
name: Node Continuous Integration
on:
pull_request:
branches: [ main ]
jobs:
test_pull_request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- run: npm ci
- run: npm run build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment