name: CI on: push: branches-ignore: - stable pull_request: branches-ignore: - stable jobs: build-and-test: name: Build and Test (Node ${{ matrix.node }}) runs-on: ubuntu-latest timeout-minutes: 30 strategy: matrix: node: - 18.x - 16.x steps: - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - uses: actions/checkout@v3 - name: Restore Dependency Cache uses: actions/cache@v3 with: path: ~/.npm key: ${{ runner.OS }}-dependency-cache-${{ hashFiles('**/package.json') }} - run: npm install - run: npm run bootstrap - run: npm run lint - run: npm test