name: Tests on: push: branches: - main - 'renovate/**' pull_request: branches: [ main ] jobs: CI: strategy: matrix: node-version: [14, 16] runs-on: ubuntu-latest 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' - run: npm install - run: npm run build - run: npm test