diff --git a/.github/workflows/dev-checks.yml b/.github/workflows/dev-checks.yml new file mode 100644 index 00000000..b4462815 --- /dev/null +++ b/.github/workflows/dev-checks.yml @@ -0,0 +1,29 @@ +name: Development checks + +on: + pull_request: + branches: [ "main" ] + +jobs: + tests: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x, 18.x] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - name: Install dependencies + run: npm ci + - name: Run build + run: npm run build + - name: Run lint check + run: npm run lint + - name: Run unit tests + run: npm run test