diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..ff180da --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,24 @@ +name: Build and test package +on: + push: + branches: [master] + pull_request: + branches: [master] +concurrency: + group: ${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version-file: ".nvmrc" + registry-url: "https://registry.npmjs.org" + cache: "npm" + - run: npm install -g npm + - run: npm ci + # Build to verify + - run: npm run build + - run: npm run test