Skip to content

Commit

Permalink
fixup! Add initial GitHub Actions support for lutok
Browse files Browse the repository at this point in the history
  • Loading branch information
ngie-eign committed Dec 27, 2024
1 parent a19ada4 commit 06a70f7
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- libatf-c-1
- libatf-dev
kyua-dep-pkgs:
- sqlite3
- libsqlite3-dev
llvm-bindir: /usr/lib/llvm-18/bin
steps:
- name: Install packages (macOS)
Expand All @@ -89,22 +89,21 @@ jobs:
- name: Install packages (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt update --quiet
sudo apt --quiet -y --no-install-suggests \
sudo apt -Uqy --no-install-suggests \
--no-install-recommends install \
${{ join(matrix.pkgs, ' ') }}
- name: Install ATF/Kyua dependencies (MacOS)
if: runner.os == 'macOS' && matrix.enable-atf == '--enable-atf'
run: |
brew install \
${{ join(matrix.enable-atf-dep-pkgs, ' ') }}
${{ join(matrix.enable-atf-dep-pkgs, ' ') }} \
${{ join(matrix.kyua-dep-pkgs, ' ') }}
- name: Install ATF/Kyua dependencies (Ubuntu)
if: runner.os == 'Linux' && matrix.enable-atf == '--enable-atf'
run: |
sudo apt --quiet -y --install-suggests \
sudo apt -Uqy --install-suggests \
--install-recommends install \
${{ join(matrix.enable-atf-dep-pkgs, ' ') }}
${{ join(matrix.enable-atf-dep-pkgs, ' ') }} \
${{ join(matrix.kyua-dep-pkgs, ' ') }}
- name: Checking out source
uses: actions/checkout@v4
Expand Down Expand Up @@ -180,16 +179,15 @@ jobs:
- name: Test Lutok
if: matrix.enable-atf == '--enable-atf'
run: |
cd "${LUTOK_OBJDIR}"
make installcheck-kyua
cd "${LUTOK_PREFIX}/tests/lutok"
kyua test
check_exit=$?
if [ $check_exit -eq 0 ]; then
echo "# ✅ All mandatory checks passed" >> $GITHUB_STEP_SUMMARY
else
echo "# ❌ Some checks failed" >> $GITHUB_STEP_SUMMARY
echo "::error file=.github/workflows/build.yaml,line=173,endLine=173,title=Checks failed!::checks failed"
fi
cd "${LUTOK_PREFIX}/tests/lutok"
kyua report-html --output ${LUTOK_OBJDIR}/html # produces html subdirectory
# Include the plaintext and JUnit reports.
kyua report --verbose --results-filter=xfail,broken,failed > ${LUTOK_OBJDIR}/html/test-reportfailed.txt
Expand Down

0 comments on commit 06a70f7

Please sign in to comment.