Test with containers #27
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: CRIU Coordinator CI | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Install System Dependencies | |
| run: | | |
| sudo add-apt-repository -y ppa:criu/ppa | |
| sudo apt-get update | |
| sudo apt-get install -qqy protobuf-compiler libprotobuf-dev criu wget | |
| - name: Install Podman | |
| run: | | |
| wget https://github.com/containers/podman/releases/download/v5.5.2/podman-remote-static-linux_amd64.tar.gz | |
| tar -xvf podman-remote-static-linux_amd64.tar.gz | |
| mv bin/podman-remote-static-linux_amd64 podman | |
| sudo mv podman /usr/local/bin/ | |
| sudo chmod +x /usr/local/bin/podman | |
| - name: Install crun | |
| run: | | |
| sudo rm -f /usr/bin/crun | |
| wget https://github.com/containers/crun/releases/download/1.23.1/crun-1.23.1-linux-amd64 | |
| sudo install -m 0755 crun-1.23.1-linux-amd64 /usr/bin/crun | |
| - name: Setup Rust toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| override: true | |
| components: clippy | |
| - name: Run tests | |
| run: make test | |
| - name: Run end-to-end tests | |
| run: sudo -E make test-e2e |