Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve tests [DI-337] #241

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading