Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github: add PR test #24

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: PR Testing

on: [pull_request]

jobs:
make-workflows:
runs-on: ubuntu-latest

env:
DESTDIR: /tmp/nilrt-snac

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history so that git-describe works
AlexHearnNI marked this conversation as resolved.
Show resolved Hide resolved
- run: make all
- name: make install
run: |
make install
tree -ap "${DESTDIR}"
- name: make uninstall
run: |
make uninstall
tree -ap "${DESTDIR}"

leftover_files=false
find "${DESTDIR}" -type f >./leftover_files

while read file; do
echo "ERROR: leftover file: ${file}"
leftover_files=true
done <./leftover_files

if $leftover_files; then
echo "ERROR: uninstall did not remove all files."
cat ./leftover_files
exit 1
else
echo "OK"
fi
- name: make dist
run: |
make dist
tar --list -f ./nilrt-snac-*.tar.gz