-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (35 loc) · 1.04 KB
/
ci.yaml
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
name: CI
on:
push: {}
jobs:
buildAndTest:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
cache: gradle
- name: Fetch EOS SDK
run: |
mkdir -p jni/EOS
curl -L 'https://dev.epicgames.com/api/sdk/download?archive_id=562&archive_type=sdk' \
-o sdk.zip
unzip sdk.zip -d jni/EOS
rm sdk.zip
- name: Build natives
run: |
./gradlew jnigenBuild
- name: Run tests
env:
EOS4J_TEST_PRODUCT_ID: "${{ secrets.EOS_PRODUCT_ID }}"
EOS4J_TEST_SANDBOX_ID: "${{ secrets.EOS_SANDBOX_ID }}"
EOS4J_TEST_DEPLOYMENT_ID: "${{ secrets.EOS_DEPLOYMENT_ID }}"
EOS4J_TEST_CLIENT_ID: "${{ secrets.EOS_CLIENT_ID }}"
EOS4J_TEST_CLIENT_SECRET: "${{ secrets.EOS_CLIENT_SECRET }}"
run: |
./gradlew test