Skip to content

Commit 0ba1782

Browse files
committedAug 27, 2020
Adds rest of workflows and triggers them
Change-Id: I6c15a186ef10480dfc1661dfa5e8e3cebcd38062
1 parent bbebb89 commit 0ba1782

12 files changed

+342
-47
lines changed
 

‎.github/workflows/Crane.yaml

+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
name: Crane
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'Crane/**'
9+
pull_request:
10+
paths:
11+
- 'Crane/**'
12+
13+
env:
14+
SAMPLE_PATH: Crane
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 30
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v2
24+
25+
- name: Copy CI gradle.properties
26+
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
27+
28+
- name: Set up JDK 1.8
29+
uses: actions/setup-java@v1
30+
with:
31+
java-version: 1.8
32+
33+
- name: Generate cache key
34+
run: ./scripts/checksum.sh $SAMPLE_PATH checksum.txt
35+
36+
- uses: actions/cache@v2
37+
with:
38+
path: |
39+
~/.gradle/caches/modules-2
40+
~/.gradle/caches/jars-3
41+
~/.gradle/caches/build-cache-1
42+
key: gradle-${{ hashFiles('checksum.txt') }}
43+
44+
- name: Build project
45+
working-directory: ${{ env.SAMPLE_PATH }}
46+
run: ./gradlew spotlessCheck assembleDebug lintDebug --stacktrace
47+
48+
- name: Upload build outputs (APKs)
49+
uses: actions/upload-artifact@v2
50+
with:
51+
name: build-outputs
52+
path: ${{ env.SAMPLE_PATH }}/app/build/outputs
53+
54+
- name: Upload build reports
55+
if: always()
56+
uses: actions/upload-artifact@v2
57+
with:
58+
name: build-reports
59+
path: ${{ env.SAMPLE_PATH }}/app/build/reports
60+
61+
test:
62+
needs: build
63+
runs-on: macOS-latest # enables hardware acceleration in the virtual machine
64+
timeout-minutes: 30
65+
strategy:
66+
matrix:
67+
api-level: [23, 26, 29]
68+
69+
steps:
70+
- name: Checkout
71+
uses: actions/checkout@v2
72+
73+
- name: Copy CI gradle.properties
74+
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
75+
76+
- name: Set up JDK 1.8
77+
uses: actions/setup-java@v1
78+
with:
79+
java-version: 1.8
80+
81+
- name: Generate cache key
82+
run: ./scripts/checksum.sh $SAMPLE_PATH checksum.txt
83+
84+
- uses: actions/cache@v2
85+
with:
86+
path: |
87+
~/.gradle/caches/modules-2
88+
~/.gradle/caches/jars-3
89+
~/.gradle/caches/build-cache-1
90+
key: gradle-${{ hashFiles('checksum.txt') }}
91+
92+
- name: Run instrumentation tests
93+
uses: reactivecircus/android-emulator-runner@v2
94+
with:
95+
api-level: ${{ matrix.api-level }}
96+
arch: x86
97+
disable-animations: true
98+
script: ./gradlew connectedCheck --stacktrace
99+
working-directory: ${{ env.SAMPLE_PATH }}
100+
101+
- name: Upload test reports
102+
if: always()
103+
uses: actions/upload-artifact@v2
104+
with:
105+
name: test-reports
106+
path: ${{ env.SAMPLE_PATH }}/app/build/reports

‎.github/workflows/Jetcaster.yaml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Jetcaster
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'Jetcaster/**'
9+
pull_request:
10+
paths:
11+
- 'Jetcaster/**'
12+
13+
env:
14+
SAMPLE_PATH: Jetcaster
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 30
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v2
24+
25+
- name: Copy CI gradle.properties
26+
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
27+
28+
- name: Set up JDK 1.8
29+
uses: actions/setup-java@v1
30+
with:
31+
java-version: 1.8
32+
33+
- name: Generate cache key
34+
run: ./scripts/checksum.sh $SAMPLE_PATH checksum.txt
35+
36+
- uses: actions/cache@v2
37+
with:
38+
path: |
39+
~/.gradle/caches/modules-2
40+
~/.gradle/caches/jars-3
41+
~/.gradle/caches/build-cache-1
42+
key: gradle-${{ hashFiles('checksum.txt') }}
43+
44+
- name: Build project
45+
working-directory: ${{ env.SAMPLE_PATH }}
46+
run: ./gradlew spotlessCheck assembleDebug lintDebug --stacktrace
47+
48+
- name: Upload build outputs (APKs)
49+
uses: actions/upload-artifact@v2
50+
with:
51+
name: build-outputs
52+
path: ${{ env.SAMPLE_PATH }}/app/build/outputs
53+
54+
- name: Upload build reports
55+
if: always()
56+
uses: actions/upload-artifact@v2
57+
with:
58+
name: build-reports
59+
path: ${{ env.SAMPLE_PATH }}/app/build/reports

‎.github/workflows/Jetsnack.yaml

-47
Original file line numberDiff line numberDiff line change
@@ -57,50 +57,3 @@ jobs:
5757
with:
5858
name: build-reports
5959
path: ${{ env.SAMPLE_PATH }}/app/build/reports
60-
61-
test:
62-
needs: build
63-
runs-on: macOS-latest # enables hardware acceleration in the virtual machine
64-
timeout-minutes: 30
65-
strategy:
66-
matrix:
67-
api-level: [23, 26, 29]
68-
69-
steps:
70-
- name: Checkout
71-
uses: actions/checkout@v2
72-
73-
- name: Copy CI gradle.properties
74-
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
75-
76-
- name: Set up JDK 1.8
77-
uses: actions/setup-java@v1
78-
with:
79-
java-version: 1.8
80-
81-
- name: Generate cache key
82-
run: ./scripts/checksum.sh $SAMPLE_PATH checksum.txt
83-
84-
- uses: actions/cache@v2
85-
with:
86-
path: |
87-
~/.gradle/caches/modules-2
88-
~/.gradle/caches/jars-3
89-
~/.gradle/caches/build-cache-1
90-
key: gradle-${{ hashFiles('checksum.txt') }}
91-
92-
- name: Run instrumentation tests
93-
uses: reactivecircus/android-emulator-runner@v2
94-
with:
95-
api-level: ${{ matrix.api-level }}
96-
arch: x86
97-
disable-animations: true
98-
script: ./gradlew connectedCheck --stacktrace
99-
working-directory: ${{ env.SAMPLE_PATH }}
100-
101-
- name: Upload test reports
102-
if: always()
103-
uses: actions/upload-artifact@v2
104-
with:
105-
name: test-reports
106-
path: ${{ env.SAMPLE_PATH }}/app/build/reports

‎.github/workflows/Jetsurvey.yaml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Jetsurvey
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'Jetsurvey/**'
9+
pull_request:
10+
paths:
11+
- 'Jetsurvey/**'
12+
13+
env:
14+
SAMPLE_PATH: Jetsurvey
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 30
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v2
24+
25+
- name: Copy CI gradle.properties
26+
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
27+
28+
- name: Set up JDK 1.8
29+
uses: actions/setup-java@v1
30+
with:
31+
java-version: 1.8
32+
33+
- name: Generate cache key
34+
run: ./scripts/checksum.sh $SAMPLE_PATH checksum.txt
35+
36+
- uses: actions/cache@v2
37+
with:
38+
path: |
39+
~/.gradle/caches/modules-2
40+
~/.gradle/caches/jars-3
41+
~/.gradle/caches/build-cache-1
42+
key: gradle-${{ hashFiles('checksum.txt') }}
43+
44+
- name: Build project
45+
working-directory: ${{ env.SAMPLE_PATH }}
46+
run: ./gradlew spotlessCheck assembleDebug lintDebug --stacktrace
47+
48+
- name: Upload build outputs (APKs)
49+
uses: actions/upload-artifact@v2
50+
with:
51+
name: build-outputs
52+
path: ${{ env.SAMPLE_PATH }}/app/build/outputs
53+
54+
- name: Upload build reports
55+
if: always()
56+
uses: actions/upload-artifact@v2
57+
with:
58+
name: build-reports
59+
path: ${{ env.SAMPLE_PATH }}/app/build/reports

‎.github/workflows/Owl.yaml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Owl
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'Owl/**'
9+
pull_request:
10+
paths:
11+
- 'Owl/**'
12+
13+
env:
14+
SAMPLE_PATH: Owl
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 30
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v2
24+
25+
- name: Copy CI gradle.properties
26+
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
27+
28+
- name: Set up JDK 1.8
29+
uses: actions/setup-java@v1
30+
with:
31+
java-version: 1.8
32+
33+
- name: Generate cache key
34+
run: ./scripts/checksum.sh $SAMPLE_PATH checksum.txt
35+
36+
- uses: actions/cache@v2
37+
with:
38+
path: |
39+
~/.gradle/caches/modules-2
40+
~/.gradle/caches/jars-3
41+
~/.gradle/caches/build-cache-1
42+
key: gradle-${{ hashFiles('checksum.txt') }}
43+
44+
- name: Build project
45+
working-directory: ${{ env.SAMPLE_PATH }}
46+
run: ./gradlew spotlessCheck assembleDebug lintDebug --stacktrace
47+
48+
- name: Upload build outputs (APKs)
49+
uses: actions/upload-artifact@v2
50+
with:
51+
name: build-outputs
52+
path: ${{ env.SAMPLE_PATH }}/app/build/outputs
53+
54+
- name: Upload build reports
55+
if: always()
56+
uses: actions/upload-artifact@v2
57+
with:
58+
name: build-reports
59+
path: ${{ env.SAMPLE_PATH }}/app/build/reports

‎.github/workflows/Rally.yaml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Rally
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'Rally/**'
9+
pull_request:
10+
paths:
11+
- 'Rally/**'
12+
13+
env:
14+
SAMPLE_PATH: Rally
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 30
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v2
24+
25+
- name: Copy CI gradle.properties
26+
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
27+
28+
- name: Set up JDK 1.8
29+
uses: actions/setup-java@v1
30+
with:
31+
java-version: 1.8
32+
33+
- name: Generate cache key
34+
run: ./scripts/checksum.sh $SAMPLE_PATH checksum.txt
35+
36+
- uses: actions/cache@v2
37+
with:
38+
path: |
39+
~/.gradle/caches/modules-2
40+
~/.gradle/caches/jars-3
41+
~/.gradle/caches/build-cache-1
42+
key: gradle-${{ hashFiles('checksum.txt') }}
43+
44+
- name: Build project
45+
working-directory: ${{ env.SAMPLE_PATH }}
46+
run: ./gradlew spotlessCheck assembleDebug lintDebug --stacktrace
47+
48+
- name: Upload build outputs (APKs)
49+
uses: actions/upload-artifact@v2
50+
with:
51+
name: build-outputs
52+
path: ${{ env.SAMPLE_PATH }}/app/build/outputs
53+
54+
- name: Upload build reports
55+
if: always()
56+
uses: actions/upload-artifact@v2
57+
with:
58+
name: build-reports
59+
path: ${{ env.SAMPLE_PATH }}/app/build/reports

‎Crane/fake-file-to-trigger-ci.txt

Whitespace-only changes.

‎Jetcaster/fake-file-to-trigger-ci.txt

Whitespace-only changes.

‎Jetchat/fake-file-to-trigger-ci.txt

Whitespace-only changes.

‎Jetsurvey/fake-file-to-trigger-ci.txt

Whitespace-only changes.

‎Owl/fake-file-to-trigger-ci.txt

Whitespace-only changes.

‎Rally/fake-file-to-trigger-ci.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)