Fix sle15 literal import #1175
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Checks | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
tests: | |
timeout-minutes: 40 | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ci_node_index: [Long1,Long2,Rest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup path | |
run: sed -i -e "s,../..:,$PWD:," dist/ci/docker-compose.yml | |
- name: Run tests | |
run: docker-compose -f dist/ci/docker-compose.yml run test | |
env: | |
# Specifies how many jobs you would like to run in parallel, | |
# used for partitioning | |
CI_NODE_TOTAL: ${{ matrix.ci_node_total }} | |
# Use the index from matrix as an environment variable | |
CI_NODE_INDEX: ${{ matrix.ci_node_index }} | |
- name: Submit coverage report to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
fail_ci_if_error: true | |
- name: Stop containers | |
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: | |
- name: install git to checkout the repo | |
run: zypper -n in git | |
- uses: actions/checkout@v3 | |
- name: fix the file permissions of the repository | |
run: chown -R $(id -un):$(id -gn) . | |
- name: add the openSUSE:Tools repository for Tumbleweed | |
if: ${{ contains(matrix.image, 'tumbleweed') }} | |
run: zypper -n ar https://download.opensuse.org/repositories/openSUSE:/Tools/openSUSE_Tumbleweed/openSUSE:Tools.repo | |
- name: add the openSUSE:Tools repository for Leap | |
if: ${{ contains(matrix.image, '15.5') }} | |
run: zypper -n ar https://download.opensuse.org/repositories/openSUSE:/Tools/15.5/openSUSE:Tools.repo | |
- name: install the build & runtime dependencies of openSUSE-release-tool | |
run: | | |
zypper -n --gpg-auto-import-keys refresh | |
zypper -n source-install openSUSE-release-tools | |
zypper -n install openSUSE-release-tools | |
- name: FIXME, install missing dependencies | |
run: | | |
zypper -n in python3-typing_extensions | |
- name: run a simple smoke test whether --help actually works | |
run: | | |
for f in $(find . -maxdepth 1 -type f -executable -print); do | |
"$f" --help | |
done | |
linters: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Validate gocd config | |
run: cd gocd && sh generate.sh && git diff --exit-code | |
- name: Setup path | |
run: sed -i -e "s,../..:,$PWD:," dist/ci/docker-compose.yml | |
- name: Run Flaker | |
run: docker-compose -f dist/ci/docker-compose.yml run flaker | |
- name: Stop containers | |
if: always() | |
run: docker-compose -f dist/ci/docker-compose.yml down | |