-
Notifications
You must be signed in to change notification settings - Fork 55
45 lines (42 loc) · 1.19 KB
/
run-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
name: Run Gradle tests
on:
push:
branches:
- master
pull_request:
env:
PANTS_SHA: "33735fe23228472367dc73f26bb96a755452192f"
IJ_ULTIMATE: false
CI: true
jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Prepare
run: sudo apt-get update && sudo apt-get install -y openjdk-8-jdk unzip curl python3-dev python3-virtualenv pkg-config git g++ libssl-dev make g++ zip
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- name: Cache .cache
uses: actions/cache@v2
with:
path: .cache
key: pants-${{ env.PANTS_SHA }}
- name: Setup CI
run: ./scripts/setup-ci-environment.sh
- name: Test
run: |
export CWD=$(pwd)
export OSS_PANTS_HOME="$CWD/.cache/pants"
export DUMMY_REPO_HOME="$CWD/.cache/dummy_repo"
export JDK_LIBS_HOME="$CWD/.cache/jdk-libs"
./gradlew :test
- name: Save build report
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: build-reports
path: 'build/reports/'
retention-days: 3