Skip to content

Commit

Permalink
unify to 1 job
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnro314 committed Jul 12, 2023
1 parent 57c647f commit 4936bcf
Showing 1 changed file with 41 additions and 29 deletions.
70 changes: 41 additions & 29 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,35 @@ on:
# packages: write

jobs:
build-lakefs-iceberg:
name: Build lakeFS Iceberg package
runs-on: ubuntu-20.04
steps:
- name: Check-out code
uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "11"
cache: "maven"

- name: Build lakeFS Iceberg
run: mvn clean install --batch-mode --update-snapshots -DskipTests -P\!sign-artifacts
# run: mvn -DfinalName=lakefs-iceberg --batch-mode --update-snapshots package -DskipTests
# run: mvn -Passembly -DfinalName=lakefs-iceberg --batch-mode --update-snapshots package -DskipTests

- name: Store lakeFS Iceberg
uses: actions/upload-artifact@v3
with:
name: lakefs-iceberg
path: target/lakefs-iceberg-1.0-SNAPSHOT.jar
# build-lakefs-iceberg:
# name: Build lakeFS Iceberg package
# runs-on: ubuntu-20.04
# steps:
# - name: Check-out code
# uses: actions/checkout@v3
#
# - name: Set up JDK 11
# uses: actions/setup-java@v3
# with:
# distribution: "temurin"
# java-version: "11"
# cache: "maven"
#
# - name: Build lakeFS Iceberg
# run: mvn clean install --batch-mode --update-snapshots -DskipTests -P\!sign-artifacts
## run: mvn -DfinalName=lakefs-iceberg --batch-mode --update-snapshots package -DskipTests
## run: mvn -Passembly -DfinalName=lakefs-iceberg --batch-mode --update-snapshots package -DskipTests
#
# - name: Store lakeFS Iceberg
# uses: actions/upload-artifact@v3
# with:
# name: lakefs-iceberg
# path: target/lakefs-iceberg-1.0-SNAPSHOT.jar


iceberg-isolation-test:
name: Test lakeFS isolation with iceberg
needs: [ build-lakefs-iceberg ]
# needs: [ build-lakefs-iceberg ]
runs-on: ubuntu-20.04
services:
lakefs:
Expand All @@ -59,11 +59,23 @@ jobs:
- name: Check-out code
uses: actions/checkout@v3

- name: Download lakeFS Iceberg
uses: actions/download-artifact@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
name: lakefs-iceberg
path: target/
distribution: "temurin"
java-version: "11"
cache: "maven"

- name: Build lakeFS Iceberg
run: mvn clean install --batch-mode --update-snapshots -DskipTests -P\!sign-artifacts
# run: mvn -DfinalName=lakefs-iceberg --batch-mode --update-snapshots package -DskipTests
# run: mvn -Passembly -DfinalName=lakefs-iceberg --batch-mode --update-snapshots package -DskipTests

# - name: Download lakeFS Iceberg
# uses: actions/download-artifact@v3
# with:
# name: lakefs-iceberg
# path: target/

# - name: Download Spark App
# uses: actions/download-artifact@v3
Expand Down

0 comments on commit 4936bcf

Please sign in to comment.