diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..56fabbb --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: test + +on: + push: + branches: ["*"] + +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ubuntu-22.04 + steps: + - name: Checkout repository + uses: actions/checkout@v4.1.1 + - name: Use Node version defined in manifest + uses: volta-cli/action@v4 + - name: Node.js version + run: node -v + - name: npm version + run: npm -v + - name: Install dependencies + run: npm ci + - name: Check for build errors + run: npm run build + - name: Run test suite + run: npm test