forked from delta-io/delta-sharing
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (68 loc) · 2.54 KB
/
compile.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Run Gradle on PRs
on:
pull_request:
branches-ignore: []
push:
branches:
- main
jobs:
gradle:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-java@v4
with:
cache: 'gradle'
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Execute Gradle build
env:
WHITEFOX_TEST_AWS_REGION: ${{ vars.WHITEFOX_AWS_REGION }}
WHITEFOX_TEST_AWS_ACCESS_KEY_ID: ${{ secrets.WHITEFOX_AWS_ACCESS_KEY_ID }}
WHITEFOX_TEST_AWS_SECRET_ACCESS_KEY: ${{ secrets.WHITEFOX_AWS_SECRET_ACCESS_KEY }}
WHITEFOX_TEST_GLUE_CATALOG_ID: ${{ secrets.WHITEFOX_GLUE_CATALOG_ID }}
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
export HADOOP_HOME="$(pwd)/.github/workflows/hadoop3-win-binaries"
fi
./gradlew build testNative --no-daemon --rerun-tasks
./gradlew server:app:printVersion --no-daemon -q
shell: bash
- name: Run integration test
shell: bash
env:
WHITEFOX_TEST_AWS_REGION: ${{ vars.WHITEFOX_AWS_REGION }}
WHITEFOX_TEST_AWS_ACCESS_KEY_ID: ${{ secrets.WHITEFOX_AWS_ACCESS_KEY_ID }}
WHITEFOX_TEST_AWS_SECRET_ACCESS_KEY: ${{ secrets.WHITEFOX_AWS_SECRET_ACCESS_KEY }}
WHITEFOX_TEST_GLUE_CATALOG_ID: ${{ secrets.WHITEFOX_GLUE_CATALOG_ID }}
run: |
WHITEFOX_SERVER_AUTHENTICATION_ENABLED=TRUE \
WHITEFOX_SERVER_AUTHENTICATION_BEARERTOKEN=token \
java -jar server/app/build/quarkus-app/quarkus-run.jar &
./gradlew :client-spark:clientSparkTest --no-daemon
kill -9 %1
- name: Login to ghcr
if: runner.os == 'Linux'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push container image
if: runner.os == 'Linux'
shell: bash
env:
QUARKUS_CONTAINER_IMAGE_PUSH: "true"
run: |
if [[ "${{github.ref}}" == "refs/heads/main" ]]; then
export QUARKUS_CONTAINER_IMAGE_ADDITIONAL_TAGS="latest"
fi
./gradlew server:app:build --no-daemon -Dquarkus.container-image.build=true