Skip to content

Commit d7df0a5

Browse files
committed
Migrate from Travis CI to GH Actions.
1 parent 7f58ea7 commit d7df0a5

File tree

9 files changed

+53
-40
lines changed

9 files changed

+53
-40
lines changed
786 Bytes
Binary file not shown.

.github/keys/deploy_key_rsa.gpg

2.15 KB
Binary file not shown.

.github/keys/firebase-sa.json.gpg

1.67 KB
Binary file not shown.

.github/keys/gcs-auth-key.json.gpg

1.68 KB
Binary file not shown.
1.69 KB
Binary file not shown.

.github/keys/spine-dev.json.gpg

1.68 KB
Binary file not shown.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build under Ubuntu
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
- 1.x-dev
8+
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
submodules: 'true'
18+
19+
- uses: actions/setup-java@v3
20+
with:
21+
java-version: 8
22+
distribution: zulu
23+
24+
# This operation is specific to `gcloud-java` repository only.
25+
- name: Decrypt the credentials for the Spine-Dev service account
26+
run: ./config/scripts/decrypt.sh "$SPINE_DEV_KEY" ./.github/keys/spine-dev.json.gpg ./spine-dev.json
27+
env:
28+
SPINE_DEV_KEY: ${{ secrets.SPINE_DEV_KEY }}
29+
30+
# The OS-managed Google Cloud SDK does not provide a Datastore emulator.
31+
- name: Remove the OS-managed Google Cloud SDK
32+
run: sudo apt-get remove google-cloud-sdk
33+
34+
- name: Install Google Cloud SDK utility
35+
run: chmod +x ./scripts/install-gcloud.sh && ./scripts/install-gcloud.sh
36+
37+
# Appends the `gcloud` utility to the PATH for this particular terminal session.
38+
- name: Install the Datastore emulator and Cloud Beta tools
39+
run: >
40+
source ~/google-cloud-sdk/path.bash.inc
41+
&& gcloud components install cloud-datastore-emulator --quiet
42+
&& gcloud components install beta --quiet
43+
44+
# Appends the `gcloud` utility to the PATH for this particular terminal session.
45+
- name: Start the Datastore emulator
46+
run: >
47+
source ~/google-cloud-sdk/path.bash.inc
48+
&& ./scripts/start-datastore.sh &
49+
50+
- name: Build project and run tests
51+
run: >
52+
source ~/google-cloud-sdk/path.bash.inc
53+
&& ./gradlew build --stacktrace

.travis.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

credentials.tar.enc

-16 KB
Binary file not shown.

0 commit comments

Comments
 (0)