Skip to content

Commit

Permalink
Add a simple smoke test launching all scripts with --help
Browse files Browse the repository at this point in the history
  • Loading branch information
dcermak committed Jul 14, 2023
1 parent 378c3a2 commit aef9bca
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,36 @@ jobs:
if: always()
run: docker-compose -f dist/ci/docker-compose.yml down

smoke-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image:
- registry.opensuse.org/opensuse/tumbleweed:latest
- registry.opensuse.org/opensuse/leap:15.5

container: ${{ matrix.image }}
steps:
- uses: actions/checkout@v3
- name: add the openSUSE:Tools repository for Tumbleweed
run: zypper -n ar https://download.opensuse.org/repositories/openSUSE:/Tools/openSUSE_Tumbleweed/openSUSE:Tools.repo
if: ${{ contains(matrix.image, 'tumbleweed') }}
- name: add the openSUSE:Tools repository for Leap
run: zypper -n ar https://download.opensuse.org/repositories/openSUSE:/Tools/15.5/openSUSE:Tools.repo
if: ${{ contains(matrix.image, 'leap') }}

- name: install the dependencies of openSUSE-release-tool
run: |
zypper -n --gpg-auto-import-keys refresh
zypper source-install openSUSE-release-tools
- name: run a simple smoke test whether --help actually works
run: |
for f in $(find . -maxdepth 1 -type f -executable -print); do
eval "$f --help"
done
linters:
runs-on: ubuntu-latest

Expand Down

0 comments on commit aef9bca

Please sign in to comment.