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 ${{ matrix.node }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - uses: c-hive/gha-yarn-cache@v1 - name: Install JS dependencies run: yarn install - name: Test run: yarn test