Skip to content

Commit

Permalink
Test runs when dependent job fails
Browse files Browse the repository at this point in the history
Signed-off-by: Guian Gumpac <[email protected]>
  • Loading branch information
GumpacG committed Sep 12, 2024
1 parent 8670178 commit 5d0188f
Showing 1 changed file with 7 additions and 61 deletions.
68 changes: 7 additions & 61 deletions .github/workflows/java-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
INPUT_VERSION: ${{ github.event.inputs.version }}

deployment-all-platforms:
needs: [set-release-version, load-platform-matrix]
env:
JAVA_VERSION: "11"
RELEASE_VERSION: ${{ needs.set-release-version.outputs.RELEASE_VERSION }}
Expand All @@ -72,51 +71,14 @@ jobs:
runs-on: ${{ matrix.host.RUNNER }}
steps:
- name: Start Redis server
run: |
if [[ ${{ matrix.host.OS }} == ubuntu ]]; then
sudo apt-get install redis
sudo systemctl start redis
else
brew install redis
brew services start redis
fi
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: ${{ env.JAVA_VERSION }}

- name: Install shared software dependencies
uses: ./.github/workflows/install-shared-dependencies
with:
os: ${{ matrix.host.OS }}
target: ${{ matrix.host.TARGET }}
github-token: ${{ secrets.GITHUB_TOKEN }}
run:
exit 1

- name: Install protoc (protobuf)
uses: arduino/setup-protoc@v3
with:
version: "26.1"
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Test deployment
working-directory: java
run: |
./gradlew :benchmarks:run --args="--minimal --clients glide"
- name: Stop Redis server
if: ${{ always() }}
run: |
if [[ ${{ matrix.host.OS }} == ubuntu ]]; then
sudo systemctl stop redis
else
brew services stop redis
fi
test:
needs: deployment-all-platforms
if: ${{ always() }}
run:
echo "hellow world"

#
# create-binaries-to-publish:
Expand Down Expand Up @@ -271,22 +233,6 @@ jobs:
# echo "Deployment ${{ env.DEPLOYMENT_ID }} was unsuccessful with status $DEPLOYMENT_STATUS"
# exit 1
#
# - uses: actions/checkout@v4
# with:
# submodules: recursive
#
# - name: Set up JDK
# uses: actions/setup-java@v4
# with:
# distribution: "temurin"
# java-version: "11"
#
# - name: Install protoc (protobuf)
# uses: arduino/setup-protoc@v3
# with:
# version: "26.1"
# repo-token: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Drop deployment if validation fails
# if: ${{ failure() }}
# run: |
Expand Down

0 comments on commit 5d0188f

Please sign in to comment.