diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e1a3d66 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ + +name: Build and test + +on: + workflow_dispatch: + push: + pull_request: + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Install Node.js + uses: actions/setup-node@v3 + with: + registry-url: 'https://registry.npmjs.org/' + node-version-file: '.nvmrc' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Test + run: npm run test