name: Build on: push: branches: - '**' pull_request: branches: - master - master-3.0 jobs: build: runs-on: ubuntu-latest strategy: matrix: node: [ 14, 16, 18 ] name: Node ${{ matrix.node }} steps: - uses: actions/checkout@v3 - name: Setup Node ${{ matrix.node }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} cache: 'yarn' - name: Install JS dependencies run: yarn install --frozen-lockfile --immutable - name: Test run: yarn test