diff --git a/.github/workflows/Build_Test.yml b/.github/workflows/Build_Test.yml new file mode 100644 index 0000000..c8474a0 --- /dev/null +++ b/.github/workflows/Build_Test.yml @@ -0,0 +1,33 @@ +name: Build and Test + + +on: + + push: + branches: [ master ] + pull_request: + branches: [ master ] + + +jobs: + build_test: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 15.x, 16.x] + + + steps: + + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: npm ci, build and test + run: | + npm ci + npm run build --if-present + npm test