Skip to content

Commit

Permalink
fix: package-tests
Browse files Browse the repository at this point in the history
Signed-off-by: Bence Csati <[email protected]>
  • Loading branch information
csatib02 committed Jan 24, 2025
1 parent 56c468e commit 2125466
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/package-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,18 @@ on:
jobs:
package-tests:
name: Package Tests
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
type: ${{ fromJSON(inputs.type) }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Download built artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: linux-packages

- name: Test ${{ matrix.type }} package
run: |
chmod +x ./scripts/package-tests/package-tests.sh
./scripts/package-tests/package-tests.sh ./axoflow-otel-collector*-SNAPSHOT-*_linux_amd64.${{ matrix.type }} ${{ inputs.distribution }}
run: ./scripts/package-tests/package-tests.sh ./axoflow-otel-collector*-SNAPSHOT-*_linux_amd64.${{ matrix.type }} ${{ inputs.distribution }}
3 changes: 1 addition & 2 deletions scripts/package-tests/package-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,12 @@ install_pkg "$container_name" "$PKG_PATH"

# ensure service has started and still running after 5 seconds
sleep 5

echo "Checking $SERVICE_NAME service status ..."
$container_exec systemctl --no-pager status "$SERVICE_NAME"

echo "Checking $PROCESS_NAME process ..."
if [ "$DISTRO" = "axoflow-otel-collector" ]; then
$container_exec pgrep -a -u axoflow-otel-collector -f "$PROCESS_NAME"
$container_exec pgrep -a -u axoflow-otel-collector "$PROCESS_NAME"
fi

# test uninstall
Expand Down

0 comments on commit 2125466

Please sign in to comment.