From 91b17feb6f692db700894d17bcf7e26f6f7b6b44 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Thu, 26 Sep 2024 12:13:32 +0100 Subject: [PATCH] use env variables for AWS creds --- .github/workflows/check-build-test.yml | 1 - .github/workflows/nightly-builds.yaml | 11 +++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-build-test.yml b/.github/workflows/check-build-test.yml index 84a5c4d68..8330630fb 100644 --- a/.github/workflows/check-build-test.yml +++ b/.github/workflows/check-build-test.yml @@ -1,7 +1,6 @@ name: CI on: - pull_request: push: branches: - main diff --git a/.github/workflows/nightly-builds.yaml b/.github/workflows/nightly-builds.yaml index 8d2444fb1..e04f93e5c 100644 --- a/.github/workflows/nightly-builds.yaml +++ b/.github/workflows/nightly-builds.yaml @@ -4,6 +4,7 @@ on: schedule: - cron: "0 3 * * *" workflow_dispatch: + pull_request: permissions: {} @@ -56,12 +57,14 @@ jobs: - name: Cache Coursier cache uses: coursier/cache-action@v6 - - name: S3 Integration tests + - name: AWS Connectors Integration tests + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }} run: |- sbt \ - -Dpekko.connectors.s3.aws.credentials.provider=static \ - -Dpekko.connectors.s3.aws.credentials.access-key-id=${{ secrets.AWS_ACCESS_KEY }} \ - -Dpekko.connectors.s3.aws.credentials.secret-access-key=${{ secrets.AWS_SECRET_KEY }} \ -Dpekko.stream.connectors.s3.scaladsl.AWSS3IntegrationSpec.enableListAllMyBucketsTests=false \ -Dpekko.stream.connectors.s3.scaladsl.AWSS3IntegrationSpec.enableMFATests=false \ + "s3/Test/runMain org.scalatest.tools.Runner -o -s org.apache.pekko.stream.connectors.s3.scaladsl.AWSS3IntegrationSpec" + sbt \ + + "aws-spi-pekko-http/it:test"