Created
November 21, 2021 14:57
-
-
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
This file contains 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: 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