denis: check for DCO with full name (not username) #223
Workflow file for this run
This file contains hidden or 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: Singularity PINP CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Podman | |
| run: | | |
| sudo apt update | |
| sudo apt install -y podman | |
| podman --version | |
| # garbage needed because otherwise the cache fails to save properly. Suggested by https://github.com/containers/podman/discussions/17868 | |
| - name: Special tar sauce | |
| run: | | |
| sudo mv -fv /usr/bin/tar /usr/bin/tar.orig | |
| echo -e '#!/bin/sh\n\nsudo /usr/bin/tar.orig --xattrs --xattrs-include='"'"'*'"'"' "$@"' | sudo tee -a /usr/bin/tar | |
| sudo chmod +x /usr/bin/tar | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.local/share/containers | |
| key: podman-in-docker-build-cache | |
| - name: Build test container | |
| run: | | |
| podman build --build-context=singularity_git_repo=. -t singularity-test . | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ./cache | |
| key: podman-in-podman-build-cache | |
| - name: Start PINPing | |
| id: run_tests | |
| run: | | |
| mkdir -p ./cache | |
| chmod 0777 ./cache | |
| podman run --rm -v ./cache:/home/podman/.local/share/containers:z --privileged localhost/singularity-test:latest | |
| - name: Report test results | |
| if: always() | |
| run: | | |
| if [ ${{ steps.run_tests.outcome }} == 'success' ]; then | |
| echo "PASS" | |
| else | |
| echo "FAIL" | |
| exit 1 | |
| fi |