readme: add logo for checkpointctl #470
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: Run Tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: | |
image: registry.fedoraproject.org/fedora:latest | |
options: --privileged | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install tools | |
run: sudo dnf -y install ShellCheck bats golang criu asciidoctor | |
- name: Run make shellcheck | |
run: make shellcheck | |
- name: Run make all | |
run: make all | |
- name: Run make test | |
run: sudo -E make test | |
- name: Run make test-junit | |
run: sudo -E make test-junit | |
- name: Upload Test Results | |
# To display test results from forked repositories they need to | |
# be uploaded and then analyzed. | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test-results | |
retention-days: 1 | |
path: test/junit.xml | |
- name: Run make install/uninstall | |
run: test/uninstall.sh | |
event_file: | |
name: "Event File" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Upload | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: event-file | |
retention-days: 1 | |
path: ${{ github.event_path }} | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Build release binary | |
run: make release | |
- name: Check static binary | |
run: | | |
file_output=$(file checkpointctl) | |
if [[ "$file_output" =~ .*statically\ linked.* ]]; then | |
echo "Binary is static" | |
exit 0 | |
else | |
echo "Binary is not static" | |
exit 1 | |
fi |