Skip to content

Commit 9550eed

Browse files
texastonyjosecorella
authored andcommitted
chore: Sync Private Master with Public Master (#59)
1 parent af1503a commit 9550eed

File tree

2 files changed

+58
-35
lines changed

2 files changed

+58
-35
lines changed

.github/workflows/private-ci.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Private AWS CodeBuild CI
2+
on:
3+
pull_request:
4+
push:
5+
6+
permissions:
7+
id-token: write
8+
contents: read
9+
10+
jobs:
11+
staticAnalysis:
12+
name: Static Analysis
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Configure AWS Credentials
16+
uses: aws-actions/configure-aws-credentials@v2
17+
with:
18+
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
19+
aws-region: us-west-2
20+
role-duration-seconds: 3600
21+
- name: Run Static Analysis
22+
uses: aws-actions/aws-codebuild-run-build@v1
23+
timeout-minutes: 60
24+
with:
25+
project-name: private-java-esdk
26+
buildspec-override: codebuild/ci/static-analysis.yml
27+
compute-type-override: BUILD_GENERAL1_MEDIUM
28+
image-override: aws/codebuild/amazonlinux2-x86_64-standard:3.0
29+
vectorTests:
30+
name: Vector Tests
31+
runs-on: ubuntu-latest
32+
strategy:
33+
fail-fast: true
34+
matrix:
35+
platform:
36+
- distribution: openjdk
37+
image: "aws/codebuild/standard:3.0"
38+
- distribution: corretto
39+
image: "aws/codebuild/amazonlinux2-x86_64-standard:3.0" # Corretto only runs on AL2
40+
version: [ 8, 11 ]
41+
steps:
42+
- name: Configure AWS Credentials
43+
uses: aws-actions/configure-aws-credentials@v2
44+
with:
45+
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
46+
aws-region: us-west-2
47+
role-duration-seconds: 3600
48+
- name: Vector Tests ${{ matrix.platform.distribution }}${{ matrix.version }}
49+
uses: aws-actions/aws-codebuild-run-build@v1
50+
timeout-minutes: 60
51+
with:
52+
project-name: private-java-esdk
53+
buildspec-override: codebuild/ci/vectors-ci.yml
54+
compute-type-override: BUILD_GENERAL1_LARGE
55+
image-override: ${{ matrix.platform.image }}
56+
env-vars-for-codebuild: JAVA_ENV_VERSION
57+
env:
58+
JAVA_ENV_VERSION: ${{ matrix.platform.distribution }}${{ matrix.version }}

.github/workflows/run-codebuild-ci.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)