Merge pull request #130 from MattiasBuelens/update-build #275
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 on push | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x] | |
# Skip job if commit message contains "[skip ci]" | |
if: | | |
!contains(github.event.head_commit.message, '[skip ci]') | |
steps: | |
- name: Check out commit | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: npm install and test | |
run: | | |
npm install | |
npm test |