diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml new file mode 100644 index 0000000..d926e21 --- /dev/null +++ b/.github/workflows/validate.yaml @@ -0,0 +1,20 @@ +name: Validate +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] +jobs: + validate: + name: Build & Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: npm ci + - name: Run tests + run: npm test