forked from spinnaker/clouddriver
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.78 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
49
50
51
52
name: Integration Tests
on:
push:
branches:
- master
pull_request:
env:
GRADLE_OPTS: -Dorg.gradle.daemon=false -Xmx6g -Xms6g
jobs:
it-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Install Java 8 for cross-compilation support. Setting it up before
# Java 11 means it comes later in $PATH (because of how setup-java works)
- uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'zulu'
- uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'zulu'
- name: Cache on push
if: github.event_name == 'push'
uses: actions/cache@v2
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@v2
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: Kubernetes Provider Integration Tests
run: ./gradlew --build-cache :clouddriver-kubernetes:integrationTest
- 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