Skip to content

Commit

Permalink
GH Actions: Fix Salt version in _version.txt file
Browse files Browse the repository at this point in the history
When GH Actions are executed, they skip the default entrypoint for the
container, so we need to arrange the _version.txt file manually
  • Loading branch information
meaksh committed Feb 21, 2024
1 parent f56bdc8 commit 2274c0f
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/functional-fast-opensuse-leap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
steps:
- name: Checkout Salt
uses: actions/checkout@v4
- name: Fix the Salt version in _version.txt file
run: rpm -q python3-salt-testsuite --queryformat '%{VERSION}' > $GITHUB_WORKSPACE/salt/_version.txt
- name: Run Fast functional tests
run: |
salt-test --skiplist https://raw.githubusercontent.com/openSUSE/salt-test-skiplist/main/skipped_tests.toml \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/functional-full-opensuse-leap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
steps:
- name: Checkout Salt
uses: actions/checkout@v4
- name: Fix the Salt version in _version.txt file
run: rpm -q python3-salt-testsuite --queryformat '%{VERSION}' > $GITHUB_WORKSPACE/salt/_version.txt
- name: Run Full functional tests
run: |
salt-test --skiplist https://raw.githubusercontent.com/openSUSE/salt-test-skiplist/main/skipped_tests.toml \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/integration-fast-opensuse-leap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
steps:
- name: Checkout Salt
uses: actions/checkout@v4
- name: Fix the Salt version in _version.txt file
run: rpm -q python3-salt-testsuite --queryformat '%{VERSION}' > $GITHUB_WORKSPACE/salt/_version.txt
- name: Run Fast integration tests
run: |
salt-test --skiplist https://raw.githubusercontent.com/openSUSE/salt-test-skiplist/main/skipped_tests.toml \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/integration-full-opensuse-leap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
steps:
- name: Checkout Salt
uses: actions/checkout@v4
- name: Fix the Salt version in _version.txt file
run: rpm -q python3-salt-testsuite --queryformat '%{VERSION}' > $GITHUB_WORKSPACE/salt/_version.txt
- name: Run Full integration tests
run: |
salt-test --skiplist https://raw.githubusercontent.com/openSUSE/salt-test-skiplist/main/skipped_tests.toml \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/scenarios-fast-opensuse-leap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
steps:
- name: Checkout Salt
uses: actions/checkout@v4
- name: Fix the Salt version in _version.txt file
run: rpm -q python3-salt-testsuite --queryformat '%{VERSION}' > $GITHUB_WORKSPACE/salt/_version.txt
- name: Run Fast scenarios tests
run: |
salt-test --skiplist https://raw.githubusercontent.com/openSUSE/salt-test-skiplist/main/skipped_tests.toml \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/scenarios-full-opensuse-leap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
steps:
- name: Checkout Salt
uses: actions/checkout@v4
- name: Fix the Salt version in _version.txt file
run: rpm -q python3-salt-testsuite --queryformat '%{VERSION}' > $GITHUB_WORKSPACE/salt/_version.txt
- name: Run Full scenarios tests
run: |
salt-test --skiplist https://raw.githubusercontent.com/openSUSE/salt-test-skiplist/main/skipped_tests.toml \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/unit-fast-opensuse-leap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
steps:
- name: Checkout Salt
uses: actions/checkout@v4
- name: Fix the Salt version in _version.txt file
run: rpm -q python3-salt-testsuite --queryformat '%{VERSION}' > $GITHUB_WORKSPACE/salt/_version.txt
- name: Run Fast unit tests
run: |
salt-test --skiplist https://raw.githubusercontent.com/openSUSE/salt-test-skiplist/main/skipped_tests.toml \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/unit-full-opensuse-leap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
steps:
- name: Checkout Salt
uses: actions/checkout@v4
- name: Fix the Salt version in _version.txt file
run: rpm -q python3-salt-testsuite --queryformat '%{VERSION}' > $GITHUB_WORKSPACE/salt/_version.txt
- name: Run Full unit tests
run: |
salt-test --skiplist https://raw.githubusercontent.com/openSUSE/salt-test-skiplist/main/skipped_tests.toml \
Expand Down

0 comments on commit 2274c0f

Please sign in to comment.