Merge pull request #69 from solita/clamav-ci-fix #72
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: "lein test: all" | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install runsc | |
run: | | |
set -e | |
ARCH=$(uname -m) | |
URL=https://storage.googleapis.com/gvisor/releases/release/20230130/${ARCH} | |
sudo wget ${URL}/runsc ${URL}/runsc.sha512 \ | |
${URL}/containerd-shim-runsc-v1 ${URL}/containerd-shim-runsc-v1.sha512 | |
sha512sum -c runsc.sha512 \ | |
-c containerd-shim-runsc-v1.sha512 | |
sudo rm -f *.sha512 | |
sudo chmod a+rx runsc containerd-shim-runsc-v1 | |
sudo mv runsc containerd-shim-runsc-v1 /usr/local/bin | |
sudo /usr/local/bin/runsc install -- --platform=ptrace | |
sudo systemctl restart docker | |
- name: test docker opts work in GHA env with and without gvisor | |
run: | | |
docker --version | |
docker run \ | |
-i \ | |
--rm alpine true || exit 1 | |
docker run --runtime=runsc \ | |
-i \ | |
--rm alpine true || exit 2 | |
- name: build docker images | |
run: | | |
cd docker-build | |
./build-all.sh | |
- name: leiningen tests | |
run: | | |
export LEIN_HOME="/home/runner/work" | |
curl --fail -o /home/runner/work/lein https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein | |
chmod a+x /home/runner/work/lein | |
/home/runner/work/lein test :all |