diff --git a/.github/workflows/npm.yaml b/.github/workflows/npm.yaml new file mode 100644 index 0000000..710a577 --- /dev/null +++ b/.github/workflows/npm.yaml @@ -0,0 +1,22 @@ +name: CI validation +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + + - name: Restore NPM dependencies + run: npm ci + + - name: Test + run: npm test