-
Notifications
You must be signed in to change notification settings - Fork 1k
48 lines (45 loc) · 1.58 KB
/
integration_tests.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
name: Integration Tests
on:
push:
branches:
- master
pull_request:
env:
GRADLE_OPTS: -Dorg.gradle.daemon=false -Xmx6g -Xms6g
jobs:
it-test-kubernetes:
uses: ./.github/workflows/integration-tests-kubernetes.yml
it-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: |
17
11
distribution: 'zulu'
- name: Cache on push
if: github.event_name == 'push'
uses: actions/cache@v3
with:
path: ~/.gradle
key: ${{ runner.os }}-cd-it-${{ github.sha }}
# Restore build outputs from the previous commit (if successful), if current commit hasn't run successfully yet
restore-keys: |
${{ runner.os }}-cd-it-${{ github.event.before }}
- name: Cache on pull_request
if: github.event_name == 'pull_request'
uses: actions/cache@v3
with:
path: ~/.gradle
key: ${{ runner.os }}-cd-it-${{ github.event.pull_request.head.sha }}
restore-keys: |
${{ runner.os }}-cd-it-${{ github.event.before }}
# Separating integration tests by provider allows to have separate logs
- name: Amazon ECS Provider Integration Tests
run: ./gradlew --build-cache :clouddriver-ecs:integrationTest
- name: Artifacts Integration Tests
run: ./gradlew --build-cache :clouddriver-artifacts:integrationTest
- name: AWS EC2 Provider Integration Tests
run: ./gradlew --build-cache :clouddriver-aws:integrationTest