From e3c04a7615632b5bc1a095a73ac436eb0892e447 Mon Sep 17 00:00:00 2001 From: Daniel Brooks Date: Tue, 7 Jan 2025 09:28:54 -0800 Subject: [PATCH] fix(local): ensuring github actions use the local files --- .github/actions/build-lambda/action.yml | 2 +- .github/actions/cdktf/action.yml | 2 +- .github/workflows/publish.yml | 2 +- .github/workflows/pull-request.yml | 6 +++--- .github/workflows/reuse-apollo-federation.yml | 2 +- .github/workflows/reuse-build-and-push-image.yml | 10 +++++----- .github/workflows/reuse-build-and-push-lambda.yml | 10 +++++----- .github/workflows/reuse-infrastructure.yml | 12 ++++++------ .github/workflows/reuse-test-integrations.yml | 2 +- 9 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/actions/build-lambda/action.yml b/.github/actions/build-lambda/action.yml index d0977dec7..fef295847 100644 --- a/.github/actions/build-lambda/action.yml +++ b/.github/actions/build-lambda/action.yml @@ -27,7 +27,7 @@ runs: using: 'composite' steps: - name: Install pnpm & node - uses: pocket/pocket-monorepo/.github/actions/install-pnpm-and-node@main + uses: ./.github/actions/install-pnpm-and-node@main with: scope: ${{ inputs['scope'] }} # Theres a really annoying bug in PNPM deploy command that will try and create a folder at /home/pruned which we are not allowed to do, diff --git a/.github/actions/cdktf/action.yml b/.github/actions/cdktf/action.yml index 52c6fb973..4b17f2c3c 100644 --- a/.github/actions/cdktf/action.yml +++ b/.github/actions/cdktf/action.yml @@ -48,7 +48,7 @@ runs: ${{ runner.os }}-tfenv- - name: Install pnpm & node - uses: pocket/pocket-monorepo/.github/actions/install-pnpm-and-node@main + uses: ./.github/actions/install-pnpm-and-node@main with: scope: ${{ inputs['scope'] }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c96cd412b..66e5154d0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,7 +29,7 @@ jobs: fetch-depth: 2 - name: Install pnpm & node - uses: pocket/pocket-monorepo/.github/actions/install-pnpm-and-node@main + uses: ./.github/actions/install-pnpm-and-node@main # https://github.com/pnpm/pnpm/issues/3141#issuecomment-1305563972 - name: Set publishing config diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index d64aeb07a..23a71f429 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -11,7 +11,7 @@ jobs: uses: actions/checkout@v4 - name: Install pnpm & node - uses: pocket/pocket-monorepo/.github/actions/install-pnpm-and-node@main + uses: ./.github/actions/install-pnpm-and-node@main - name: Check for mismatched dependencies run: pnpm run list-mismatches @@ -23,7 +23,7 @@ jobs: uses: actions/checkout@v4 - name: Install pnpm & node - uses: pocket/pocket-monorepo/.github/actions/install-pnpm-and-node@main + uses: ./.github/actions/install-pnpm-and-node@main - name: Lint code run: pnpm run lint @@ -36,7 +36,7 @@ jobs: uses: actions/checkout@v4 - name: Install pnpm & node - uses: pocket/pocket-monorepo/.github/actions/install-pnpm-and-node@main + uses: ./.github/actions/install-pnpm-and-node@main - name: Unit tests # Following uses a 2 concurrency because terraform modules seems to fail with an OOM error on CI if we do more. diff --git a/.github/workflows/reuse-apollo-federation.yml b/.github/workflows/reuse-apollo-federation.yml index 63d8f83eb..5d3dc56ad 100644 --- a/.github/workflows/reuse-apollo-federation.yml +++ b/.github/workflows/reuse-apollo-federation.yml @@ -56,7 +56,7 @@ jobs: fetch-depth: 0 - name: Install pnpm & node if: ${{ inputs.scope != '' }} - uses: pocket/pocket-monorepo/.github/actions/install-pnpm-and-node@main + uses: ./.github/actions/install-pnpm-and-node@main with: scope: ${{ inputs['scope'] }} - name: Build schema diff --git a/.github/workflows/reuse-build-and-push-image.yml b/.github/workflows/reuse-build-and-push-image.yml index c90deeef1..6fa3c903c 100644 --- a/.github/workflows/reuse-build-and-push-image.yml +++ b/.github/workflows/reuse-build-and-push-image.yml @@ -75,7 +75,7 @@ jobs: with: name: ${{inputs.archive-download-name}} - name: Build Docker Image - uses: pocket/pocket-monorepo/.github/actions/containerize@main + uses: ./.github/actions/containerize@main with: docker-repo-name: "${{inputs.development-aws-registry }}/${{ format(inputs.docker-repo-name-pattern, 'dev') }}" app-path: ${{inputs.app-path}} @@ -109,7 +109,7 @@ jobs: role-to-assume: arn:aws:iam::410318598490:role/PocketGHARole - name: Build and Push Development Docker Image id: dev-docker-build - uses: pocket/pocket-monorepo/.github/actions/containerize@main + uses: ./.github/actions/containerize@main with: docker-repo-name: "${{inputs.development-aws-registry }}/${{ format(inputs.docker-repo-name-pattern, 'dev') }}" app-path: ${{inputs.app-path}} @@ -123,7 +123,7 @@ jobs: scope: ${{inputs.scope}} push: true - name: Code Deploy Docker Image - uses: pocket/pocket-monorepo/.github/actions/ecs-codedeploy@main + uses: ./.github/actions/ecs-codedeploy@main if: fromJSON(inputs.terraform-output).ecs-task-containerName.value != '' with: docker-image-name: ${{steps.dev-docker-build.outputs.docker-image-name}} @@ -149,7 +149,7 @@ jobs: role-to-assume: arn:aws:iam::996905175585:role/PocketGHARole - name: Build and Push Production Docker Image id: prod-docker-build - uses: pocket/pocket-monorepo/.github/actions/containerize@main + uses: ./.github/actions/containerize@main with: docker-repo-name: "${{inputs.production-aws-registry }}/${{ format(inputs.docker-repo-name-pattern, 'prod') }}" app-path: ${{inputs.app-path}} @@ -163,7 +163,7 @@ jobs: scope: ${{inputs.scope}} push: true - name: Code Deploy Docker Image - uses: pocket/pocket-monorepo/.github/actions/ecs-codedeploy@main + uses: ./.github/actions/ecs-codedeploy@main if: fromJSON(inputs.terraform-output).ecs-task-containerName.value != '' with: docker-image-name: ${{steps.prod-docker-build.outputs.docker-image-name}} diff --git a/.github/workflows/reuse-build-and-push-lambda.yml b/.github/workflows/reuse-build-and-push-lambda.yml index 8a3722cfb..f5a334631 100644 --- a/.github/workflows/reuse-build-and-push-lambda.yml +++ b/.github/workflows/reuse-build-and-push-lambda.yml @@ -52,7 +52,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Build Lambda - uses: pocket/pocket-monorepo/.github/actions/build-lambda@main + uses: ./.github/actions/build-lambda@main with: sentry-project: ${{inputs['sentry-project']}} sentry-org: ${{inputs['sentry-org']}} @@ -72,7 +72,7 @@ jobs: aws-region: us-east-1 role-to-assume: arn:aws:iam::410318598490:role/PocketGHARole - name: Build Lambda - uses: pocket/pocket-monorepo/.github/actions/build-lambda@main + uses: ./.github/actions/build-lambda@main with: sentry-project: ${{inputs['sentry-project']}} sentry-org: ${{inputs['sentry-org']}} @@ -81,7 +81,7 @@ jobs: s3-bucket: ${{ format(inputs.s3-bucket-pattern, 'dev') }} s3-key: ${{ inputs.s3-key }} - name: CodeDeploy Lambda - uses: pocket/pocket-monorepo/.github/actions/lambda-codedeploy@main + uses: ./.github/actions/lambda-codedeploy@main with: s3-bucket: ${{ format(inputs.s3-bucket-pattern, 'dev') }} s3-key: ${{ inputs.s3-key }} @@ -101,7 +101,7 @@ jobs: aws-region: us-east-1 role-to-assume: arn:aws:iam::996905175585:role/PocketGHARole - name: Build Lambda - uses: pocket/pocket-monorepo/.github/actions/build-lambda@main + uses: ./.github/actions/build-lambda@main with: sentry-project: ${{inputs['sentry-project']}} sentry-org: ${{inputs['sentry-org']}} @@ -110,7 +110,7 @@ jobs: s3-bucket: ${{ format(inputs.s3-bucket-pattern, 'prod') }} s3-key: ${{ inputs.s3-key }} - name: CodeDeploy Lambda - uses: pocket/pocket-monorepo/.github/actions/lambda-codedeploy@main + uses: ./.github/actions/lambda-codedeploy@main with: s3-bucket: ${{ format(inputs.s3-bucket-pattern, 'prod') }} s3-key: ${{ inputs.s3-key }} diff --git a/.github/workflows/reuse-infrastructure.yml b/.github/workflows/reuse-infrastructure.yml index 8c3948417..942e9f48b 100644 --- a/.github/workflows/reuse-infrastructure.yml +++ b/.github/workflows/reuse-infrastructure.yml @@ -44,7 +44,7 @@ jobs: role-to-assume: arn:aws:iam::996905175585:role/PocketGHARole - name: Execute CDKTF if: inputs.raw-terraform == false - uses: pocket/pocket-monorepo/.github/actions/cdktf@main + uses: ./.github/actions/cdktf@main with: stack-output-path: ${{inputs['stack-output-path']}} scope: ${{inputs['scope']}} @@ -56,7 +56,7 @@ jobs: - name: Execute Raw Terraform if: inputs.raw-terraform == true - uses: pocket/pocket-monorepo/.github/actions/raw-terraform@main + uses: ./.github/actions/raw-terraform@main with: stack-output-path: ${{inputs['stack-output-path']}} scope: ${{inputs['scope']}} @@ -88,7 +88,7 @@ jobs: role-to-assume: arn:aws:iam::996905175585:role/PocketGHARole - name: Execute Development CDKTF if: inputs.raw-terraform == false && github.ref == 'refs/heads/dev' - uses: pocket/pocket-monorepo/.github/actions/cdktf@main + uses: ./.github/actions/cdktf@main with: stack-output-path: ${{inputs['stack-output-path']}} scope: ${{inputs['scope']}} @@ -99,7 +99,7 @@ jobs: terraform-token: ${{ secrets.TERRAFORM_TOKEN }} - name: Execute Developement Raw Terraform if: inputs.raw-terraform == true && github.ref == 'refs/heads/dev' - uses: pocket/pocket-monorepo/.github/actions/raw-terraform@main + uses: ./.github/actions/raw-terraform@main with: stack-output-path: ${{inputs['stack-output-path']}} scope: ${{inputs['scope']}} @@ -111,7 +111,7 @@ jobs: - name: Execute Production CDKTF if: inputs.raw-terraform == false && github.ref == 'refs/heads/main' - uses: pocket/pocket-monorepo/.github/actions/cdktf@main + uses: ./.github/actions/cdktf@main with: stack-output-path: ${{inputs['stack-output-path']}} scope: ${{inputs['scope']}} @@ -123,7 +123,7 @@ jobs: - name: Execute Production Raw Terraform if: inputs.raw-terraform == true && github.ref == 'refs/heads/main' - uses: pocket/pocket-monorepo/.github/actions/raw-terraform@main + uses: ./.github/actions/raw-terraform@main with: stack-output-path: ${{inputs['stack-output-path']}} scope: ${{inputs['scope']}} diff --git a/.github/workflows/reuse-test-integrations.yml b/.github/workflows/reuse-test-integrations.yml index 1e5090dd7..d084cb4c3 100644 --- a/.github/workflows/reuse-test-integrations.yml +++ b/.github/workflows/reuse-test-integrations.yml @@ -29,7 +29,7 @@ jobs: # While we wait for docker compose to be healthy we install node and needed packages for this service - name: Install pnpm & node - uses: pocket/pocket-monorepo/.github/actions/install-pnpm-and-node@main + uses: ./.github/actions/install-pnpm-and-node@main with: scope: ${{ inputs['scope'] }}