diff --git a/.github/workflows/lcm-integration-e2e.yaml b/.github/workflows/lcm-integration-e2e.yaml index 1501b932d..91997ef94 100644 --- a/.github/workflows/lcm-integration-e2e.yaml +++ b/.github/workflows/lcm-integration-e2e.yaml @@ -30,13 +30,44 @@ jobs: with: submodules: 'true' token: ${{ secrets.TOKEN_GITHUB_YENKINS }} - - name: Build local image + - name: Get required Vault secrets + uses: hashicorp/vault-action@v3 + with: + url: ${{ secrets.VAULT_ADDRESS }} + method: jwt + path: jwt/github + role: ecr-ii-push + secrets: | + secret/data/v2/data-special/infra1-user-ecr-rw aws_ecr_access_key | AWS_ACCESS_KEY ; + secret/data/v2/data-special/infra1-user-ecr-rw aws_ecr_secret_key | AWS_SECRET_KEY ; + - name: Set up JDK (required for JRuby) + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: '11' + - name: Set up JRuby + Bundler + uses: ruby/setup-ruby@v1 + with: + ruby-version: 'jruby-9.4.12.1' + bundler-cache: true + - name: Build image run: | - bundle exec rake -f lcm.rake test:docker:build + bundle exec rake -f lcm.rake docker:build - name: Build gems run: | - bundle exec rake -f lcm.rake test:docker:bundle + bundle exec rake -f lcm.rake docker:bundle - name: Run integrated tests run: | bundle exec rake -f lcm.rake test:docker:integration-e2e + env: + GD_STG_PASSWORD: "OHev3JL0$*L3zoWl" + GD_STG_USERNAME: "rubydev+admin@gooddata.com" + GD_STG_DEV_TOKEN: "INT00PDWH01STG1LCMDEV" + GD_STG_PROD_TOKEN: "INT01PRODPDWH01STG1LCM" + GD_STG_VERTICA_DEV_TOKEN: "INT00PDWH01STG1LCMDEV" + GD_STG_VERTICA_PROD_TOKEN: "INT01PRODPDWH01STG1LCM" + RT_S3_BUCKET_NAME: "gdc-dev-eu-integration-tests" + RT_S3_ACCESS_KEY: ${{ env.AWS_ACCESS_KEY }} + RT_S3_SECRET_KEY: ${{ env.AWS_SECRET_KEY }} +# RT_S3_SESSION_TOKEN: ${{ secrets.TOKEN_GITHUB_YENKINS }} diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 000000000..92b9920cc --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,16 @@ +name: Quick and Dirty lcm runner +on: + workflow_dispatch: + +jobs: + call-e2e: + uses: ./.github/workflows/lcm-integration-e2e.yaml + secrets: inherit + permissions: + id-token: write + contents: read + with: + AUTO_MERGE: true + base_branch: main + pr_number: "123" +