-
Notifications
You must be signed in to change notification settings - Fork 4
81 lines (72 loc) · 2.59 KB
/
github-pr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: PR Build
on:
pull_request:
branches:
- main
- 'patch/**'
jobs:
build:
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: false
docker-images: true
swap-storage: true
- name: "Checkout"
uses: actions/checkout@v3
with:
token: ${{ secrets.TOOLS_GHA_TOKEN }}
submodules: recursive
fetch-depth: 0
- name: "Set up JDK 11"
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: "Login to AWS & Public ECR"
uses: ./.github/actions/aws-and-ecr-login
with:
role-to-assume: arn:aws:iam::292505934682:role/github-responsivedev-org
role-session-name: github-publish-artifacts
aws-region: us-east-1
public: "true"
- name: "Setup Gradle"
uses: gradle/[email protected]
- name: "Build & Test"
run: ./gradlew build buildDocker
- name: "Checkout sindri"
uses: actions/checkout@v3
with:
repository: responsivedev/sindri
path: sindri
ref: refs/heads/main
token: ${{ secrets.TOOLS_GHA_TOKEN }}
- name: "Login to AWS & ECR"
uses: ./.github/actions/aws-and-ecr-login
with:
role-to-assume: arn:aws:iam::292505934682:role/github-responsivedev-org
role-session-name: github-pr-builder
aws-region: us-west-2
- name: "Install Kind"
uses: helm/[email protected]
with:
install_only: true
- name: "Run Smoke Test"
run: |
sindri/scripts/update-versions -u -s responsiveOperator -e local -i responsive-operator:`./gradlew operator:cV | grep Project.version | sed 's/Project version: //'`
sindri/scripts/update-client-versions -s main -p false -i simple-example -t `./gradlew kafka-client:cV | grep "Project version" | sed 's/Project version: //'`
sindri/scripts/run-smoke-test -l -w system-tests-pub-pr-${PR_NUMBER} -s main
env:
PR_NUMBER: ${{ github.event.number }}
DD_SERVICE: "https://us5.datadoghq.com/"
DD_API_KEY: ${{ secrets.DD_API_KEY }}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}