Skip to content

Commit 7277a3d

Browse files
committed
Implementation of github actions for lcm-integration-e2e
1 parent 2605faf commit 7277a3d

1 file changed

Lines changed: 100 additions & 0 deletions

File tree

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
name: LCM Integration E2E Pipeline
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
AUTO_MERGE:
7+
default: true
8+
required: false
9+
type: boolean
10+
description: Must be set here in order to use in if condition at job level.
11+
base_branch:
12+
required: true
13+
type: string
14+
description: The base branch to compare against for detecting changes.
15+
pr_number:
16+
required: true
17+
type: string
18+
19+
env:
20+
VAULT_SPECIAL_PREFIX: "secret/v2/na1/int/data-special"
21+
22+
jobs:
23+
LCM-integration-e2e-tests:
24+
runs-on:
25+
group: infra1-runners-arc
26+
labels: runners-rxa-xlarge
27+
permissions:
28+
id-token: write
29+
contents: read
30+
steps:
31+
- name: Checkout repository
32+
uses: actions/checkout@v4
33+
with:
34+
submodules: 'true'
35+
token: ${{ secrets.TOKEN_GITHUB_YENKINS }}
36+
- name: Get required Vault secrets
37+
uses: hashicorp/vault-action@v3
38+
with:
39+
url: ${{ secrets.VAULT_ADDRESS }}
40+
method: jwt
41+
path: jwt/github
42+
role: ecr-ii-push
43+
secrets: |
44+
secret/data/v2/data-special/infra1-user-ecr-rw aws_ecr_access_key | AWS_ACCESS_KEY ;
45+
secret/data/v2/data-special/infra1-user-ecr-rw aws_ecr_secret_key | AWS_SECRET_KEY ;
46+
- name: Set up JDK (required for JRuby)
47+
uses: actions/setup-java@v4
48+
with:
49+
distribution: temurin
50+
java-version: '11'
51+
- name: Set up JRuby + Bundler
52+
uses: ruby/setup-ruby@v1
53+
with:
54+
ruby-version: 'jruby-9.4.12.1'
55+
bundler-cache: true
56+
- name: Build image
57+
run: |
58+
bundle exec rake -f lcm.rake docker:build
59+
- name: Build gems
60+
run: |
61+
bundle exec rake -f lcm.rake docker:bundle
62+
- name: Run integrated tests
63+
run: |
64+
bundle exec rake -f lcm.rake test:docker:integration-e2e
65+
env:
66+
# GD_STG_PASSWORD: ""
67+
# GD_STG_USERNAME: "rubydev+admin@gooddata.com"
68+
# GD_STG_DEV_TOKEN: "INT00PDWH01STG1LCMDEV"
69+
# GD_STG_PROD_TOKEN: "INT01PRODPDWH01STG1LCM"
70+
# GD_STG_VERTICA_DEV_TOKEN: "INT00PDWH01STG1LCMDEV"
71+
# GD_STG_VERTICA_PROD_TOKEN: "INT01PRODPDWH01STG1LCM"
72+
# RT_S3_BUCKET_NAME: "gdc-dev-eu-integration-tests"
73+
# RT_S3_ACCESS_KEY: ${{ env.AWS_ACCESS_KEY }}
74+
# RT_S3_SECRET_KEY: ${{ env.AWS_SECRET_KEY }}
75+
# RT_S3_SESSION_TOKEN: ${{ secrets.TOKEN_GITHUB_YENKINS }}
76+
GD_SPEC_PASSWORD: "$VAULT_SPECIAL_PREFIX/ruby-test-bia-encryption-key"
77+
RT_S3_BUCKET_NAME: "$VAULT_SPECIAL_PREFIX/ruby-test-s3-credentials bucket_name"
78+
RT_S3_ACCESS_KEY: "$VAULT_SPECIAL_PREFIX/ruby-test-s3-credentials access_key"
79+
RT_S3_SECRET_KEY: "$VAULT_SPECIAL_PREFIX/ruby-test-s3-credentials secret_key"
80+
GD_DEV_DEV_TOKEN: "$VAULT_SPECIAL_PREFIX/ruby-test-stg3 dev_token"
81+
GD_DEV_PROD_TOKEN: "$VAULT_SPECIAL_PREFIX/ruby-test-stg3 prod_token"
82+
GD_DEV_VERTICA_DEV_TOKEN: "$VAULT_SPECIAL_PREFIX/ruby-test-stg3 vertica_dev_token"
83+
GD_DEV_VERTICA_PROD_TOKEN: "$VAULT_SPECIAL_PREFIX/ruby-test-stg3 vertica_prod_token"
84+
GD_DEV_PASSWORD: "$VAULT_SPECIAL_PREFIX/ruby-test-stg3 gd_password"
85+
GD_DEV_GD_PROJECT_TOKEN: "$VAULT_SPECIAL_PREFIX/ruby-test-stg3 gd_project_token"
86+
GD_DEV_DEFAULT_PASSWORD: "$VAULT_SPECIAL_PREFIX/ruby-test-stg3 gd_default_password"
87+
GD_TEST_DEV_TOKEN: "$VAULT_SPECIAL_PREFIX/ruby-test-stg2 dev_token"
88+
GD_TEST_PROD_TOKEN: "$VAULT_SPECIAL_PREFIX/ruby-test-stg2 prod_token"
89+
GD_TEST_VERTICA_DEV_TOKEN: "$VAULT_SPECIAL_PREFIX/ruby-test-stg2 vertica_dev_token"
90+
GD_TEST_VERTICA_PROD_TOKEN: "$VAULT_SPECIAL_PREFIX/ruby-test-stg2 vertica_prod_token"
91+
GD_TEST_PASSWORD: "$VAULT_SPECIAL_PREFIX/ruby-test-stg2 gd_password"
92+
GD_TEST_GD_PROJECT_TOKEN: "$VAULT_SPECIAL_PREFIX/ruby-test-stg2 gd_project_token"
93+
GD_TEST_DEFAULT_PASSWORD: "$VAULT_SPECIAL_PREFIX/ruby-test-stg2 gd_default_password"
94+
GD_STG_DEV_TOKEN: "$VAULT_SPECIAL_PREFIX/ruby-test-stg1 dev_token"
95+
GD_STG_PROD_TOKEN: "$VAULT_SPECIAL_PREFIX/ruby-test-stg1 prod_token"
96+
GD_STG_VERTICA_DEV_TOKEN: "$VAULT_SPECIAL_PREFIX/ruby-test-stg1 vertica_dev_token"
97+
GD_STG_VERTICA_PROD_TOKEN: "$VAULT_SPECIAL_PREFIX/ruby-test-stg1 vertica_prod_token"
98+
GD_STG_PASSWORD: "$VAULT_SPECIAL_PREFIX/ruby-test-stg1 gd_password"
99+
GD_STG_GD_PROJECT_TOKEN: "$VAULT_SPECIAL_PREFIX/ruby-test-stg1 gd_project_token"
100+
GD_STG_DEFAULT_PASSWORD: "$VAULT_SPECIAL_PREFIX/ruby-test-stg1 gd_default_password"

0 commit comments

Comments
 (0)