diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 34ba151b..d9894274 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,16 @@ env: AWS_REGION: us-east-2 jobs: + install-deps: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/configure-nodejs + with: + lookup-only: 'true' # We only want to lookup from the cache - if a hit, this job does nothing + build: + needs: [install-deps] runs-on: ubuntu-latest outputs: prSuffix: ${{ steps.prSuffix.outputs.prSuffix }} @@ -578,6 +587,7 @@ jobs: build-jsii: # if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && contains( github.event.pull_request.labels.*.name, 'BUILD-JSII')) || (github.event_name == 'pull_request' && github.actor == 'dependabot[bot]') + needs: [install-deps] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/main-build.yml b/.github/workflows/main-build.yml index 3cff4f12..735d639d 100644 --- a/.github/workflows/main-build.yml +++ b/.github/workflows/main-build.yml @@ -16,8 +16,17 @@ on: # - main jobs: + install-deps: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/configure-nodejs + with: + lookup-only: 'true' # We only want to lookup from the cache - if a hit, this job does nothing + build: name: Build CDK Construct + needs: [install-deps] runs-on: ubuntu-latest permissions: contents: write diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 65898755..66389998 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,11 +8,20 @@ on: release: types: [published] jobs: + install-deps: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/configure-nodejs + with: + lookup-only: 'true' # We only want to lookup from the cache - if a hit, this job does nothing + # # CDK Construct # release: name: Build CDK Construct + needs: [install-deps] runs-on: ubuntu-latest permissions: contents: write