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: Build & Test with Node.js | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 # Checkout repo | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 # Setup node | |
with: | |
node-version: 20.x | |
cache: 'npm' | |
- run: npm ci # Install dependencies | |
- run: npm run build # Build sources | |
- run: npm run test # Run tests |