Skip to content

Commit

Permalink
Combine jobs
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Carino <carino_jade@yahoo.co.uk>
  • Loading branch information
jadecarino committed Jul 29, 2024
1 parent 5ef76f6 commit 46812ad
Showing 1 changed file with 67 additions and 67 deletions.
134 changes: 67 additions & 67 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,77 +68,77 @@ jobs:
run : |
make all -C cli/
- name: Upload galasactl binary for testing
uses: actions/upload-artifact@v4
# - name: Upload galasactl binary for testing
# uses: actions/upload-artifact@v4
# with:
# name: galasactl-linux-x86_64
# path: cli/bin/galasactl-linux-x86_64

# test-galasactl-locally-with-maven:
# name: Run the galasactl local test script with Maven
# runs-on: ubuntu-latest
# needs: build-cli

# steps:
# - name: Checkout CLI
# uses: actions/checkout@v4
# with:
# path: cli

# - name: Download galasactl binary for testing
# uses: actions/download-artifact@v4
# with:
# name: galasactl-linux-x86_64

- name: Set up JDK
uses: actions/setup-java@v4
with:
name: galasactl-linux-x86_64
path: cli/bin/galasactl-linux-x86_64
java-version: '11'
distribution: 'semeru'
cache: maven

test-galasactl-locally-with-maven:
name: Run the galasactl local test script with Maven
runs-on: ubuntu-latest
needs: build-cli
- name: Chmod local test script
run: |
chmod +x cli/test-galasactl-local.sh
steps:
- name: Checkout CLI
uses: actions/checkout@v4
with:
path: cli

- name: Download galasactl binary for testing
uses: actions/download-artifact@v4
with:
name: galasactl-linux-x86_64

- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'semeru'
cache: maven

- name: Chmod local test script
run: |
chmod +x cli/test-galasactl-local.sh
- name: Run local test script with maven
run : |
./cli/test-galasactl-local.sh --buildTool maven
test-galasactl-locally-with-gradle:
name: Run the galasactl local test script with Gradle
runs-on: ubuntu-latest
needs: build-cli
- name: Run local test script with maven
run : |
./cli/test-galasactl-local.sh --buildTool maven
steps:
- name: Checkout CLI
uses: actions/checkout@v4
with:
path: cli

- name: Download galasactl binary for testing
uses: actions/download-artifact@v4
with:
name: galasactl-linux-x86_64

- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'semeru'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 6.9.2

- name: Chmod local test script
run: |
chmod +x cli/test-galasactl-local.sh
- name: Run local test script with maven
run : |
./cli/test-galasactl-local.sh --buildTool gradle
# test-galasactl-locally-with-gradle:
# name: Run the galasactl local test script with Gradle
# runs-on: ubuntu-latest
# needs: build-cli

# steps:
# - name: Checkout CLI
# uses: actions/checkout@v4
# with:
# path: cli

# - name: Download galasactl binary for testing
# uses: actions/download-artifact@v4
# with:
# name: galasactl-linux-x86_64

# - name: Setup JDK
# uses: actions/setup-java@v4
# with:
# java-version: '11'
# distribution: 'semeru'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 6.9.2

- name: Chmod local test script
run: |
chmod +x cli/test-galasactl-local.sh
- name: Run local test script with maven
run : |
./cli/test-galasactl-local.sh --buildTool gradle
# test-galasactl-ecosystem:
# name: Run the galasactl ecosystem test script
Expand Down

0 comments on commit 46812ad

Please sign in to comment.