-
Notifications
You must be signed in to change notification settings - Fork 7
49 lines (41 loc) · 1.43 KB
/
ci.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
name: CI
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Archive RuneScape caches into GitHub Actions cache
id: cache-testdata
uses: actions/cache@v1
with:
path: testData/
key: rs-cache-testdata
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Download RuneScape caches for integration tests
env:
LEGACY_CACHE_URL: ${{ secrets.RS2_377_CACHE }}
OSRS_CACHE_URL: ${{ secrets.OSRS_181_CACHE }}
run: |
mkdir -p testData/osrs/181 testData/rs2/377
curl "$LEGACY_CACHE_URL" -o rs2-377.tar.xz
tar -xf rs2-377.tar.xz -C testData/rs2/377
curl "$OSRS_CACHE_URL" -o osrs-181.tar.xz
tar -xf osrs-181.tar.xz -C testData/osrs/181
if: steps.cache-testdata.outputs.cache-hit != 'true'
- name: Run tests with Gradle
run: |
./gradlew check -Pvicis.runIntegrationTests=true \
-PVICIS_OSRS_CACHE=`pwd`/testData/osrs/181 \
-PVICIS_RS2_CACHE=`pwd`/testData/rs2/377