chore(release): only the release action should be gated to one at a time; PR build and test should be able to run in parallel across multiple PRs (RHIDP-4430) #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request - Builds | |
on: pull_request | |
env: | |
TURBO_SCM_BASE: ${{ github.event.pull_request.base.sha }} | |
TURBO_SCM_HEAD: ${{ github.sha }} | |
# uncommment this to enforce only one action can run at a time | |
# concurrency: | |
# group: ${{ github.workflow }}-${{ github.ref }} | |
# cancel-in-progress: false | |
jobs: | |
build: | |
name: Build with Node.js ${{ matrix.node-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
registry-url: 'https://registry.npmjs.org' | |
cache: 'yarn' | |
- name: Setup local Turbo cache | |
uses: dtinth/setup-github-actions-caching-for-turbo@cc723b4600e40a6b8815b65701d8614b91e2669e # v1 | |
- name: Install dependencies | |
run: | | |
yarn install | |
- name: Build packages | |
uses: ./.github/actions/build | |
with: | |
args: --affected |