Skip to content

Commit

Permalink
Improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JackPGreen committed Nov 8, 2024
1 parent 738e4bd commit 648c9da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/publish-deb-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ concurrency:
jobs:
deb:
runs-on: ubuntu-latest
container:
image: debian:stable
defaults:
run:
shell: bash
env:
HZ_VERSION: ${{ inputs.HZ_VERSION }}
PACKAGE_VERSION: ${{ inputs.PACKAGE_VERSION || inputs.HZ_VERSION }}
Expand All @@ -39,14 +44,10 @@ jobs:
- name: Checkout hazelcast-packaging repo
uses: actions/checkout@v4

- name: Load env vars from .env file
run: cat .env >> $GITHUB_ENV

- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
- name: Install prerequisites
run: |
apt-get update
apt-get install -y curl gettext-base gpg sudo wget
- name: Download the distribution tar.gz file
env:
Expand Down Expand Up @@ -94,7 +95,7 @@ jobs:
sudo apt-get remove ${{ env.HZ_DISTRIBUTION}}
- name: Remove deb package from test repo
if: env.USE_TEST_REPO == 'true'
if: ${{ env.USE_TEST_REPO == 'true' && (success() || failure()) }}
run: |
source ./common.sh
curl -H "Authorization: Bearer ${{ env.JFROG_TOKEN }}" \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-rpm-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
yum remove -y ${{ env.HZ_DISTRIBUTION}}-${RPM_PACKAGE_VERSION}
- name: Remove rpm package from test repo
if: env.USE_TEST_REPO == 'true'
if: ${{ env.USE_TEST_REPO == 'true' && (success() || failure()) }}
run: |
source ./common.sh
curl -H "Authorization: Bearer ${{ env.JFROG_TOKEN }}" \
Expand Down

0 comments on commit 648c9da

Please sign in to comment.