-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (56 loc) · 1.73 KB
/
scenario.yml
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
name: Clusterless Scenario Tests
run-name: "Push: from ${{ github.actor }}"
on:
workflow_dispatch:
push:
branches:
- '*-scenarios'
paths-ignore:
- '**.txt'
- '**.md'
- '**.adoc'
- '**.template'
- '**.hbs'
jobs:
run-all-scenarios:
concurrency: scenarios-us-east-2
runs-on: ubuntu-latest
steps:
- name: Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
args: --ssh
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17
- name: Install Node
uses: actions/setup-node@v3
- name: Install CDK
run: npm install -g [email protected]
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Setup Env
run: echo "${{ vars.GRADLE_PROPERTIES_EAST }}" > gradle.properties
- name: Run Scenarios
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-2
run: |
./gradlew --no-daemon --info --stacktrace scenarios | tee clusterless-scenario/build/scenarios.log
- name: Archive Scenario Results
uses: actions/upload-artifact@v3
if: always()
with:
name: scenario-results
path: |
clusterless-scenario/build/scenarios.log
clusterless-scenario/build/scenarios/*
!clusterless-scenario/build/scenarios/**/cdk.out
retention-days: 5