Skip to content

Commit

Permalink
Use upstream tmt-actions
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <[email protected]>
  • Loading branch information
LecrisUT committed Jan 10, 2024
1 parent a74d01d commit c4a3ce3
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/step_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,8 @@ jobs:
git config --global --add safe.directory "*"
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions Bot"
- uses: actions/setup-python@v5
with:
python-version: 3.x
# TODO: This will be migrated to standalone actions
- name: Setup tmt environment
run: dnf install -y tmt tmt+report-junit
- name: Setup tmt
uses: LecrisUT/tmt-actions/setup-tmt@v1
- uses: lukka/get-cmake@latest
with:
cmakeVersion: ${{ matrix.cmake }}
Expand All @@ -44,14 +40,10 @@ jobs:
echo "CMakeExtraUtils_ROOT=$(pwd)/build" >> $GITHUB_ENV
# TODO: This will be migrated to standalone actions
- name: Run tmt tests
run: >
tmt --root ./test run --all provision -h local report -h junit --file report.xml
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v4
uses: LecrisUT/tmt-actions/run-tmt@v1
with:
name: JUnit-CMake-${{ matrix.cmake }}
path: report.xml
root: test
report-artifact: JUnit-CMake-${{ matrix.cmake }}
report:
name: Report JUnit
needs: [ tests ]
Expand Down

0 comments on commit c4a3ce3

Please sign in to comment.