Skip to content

update checkout action #70

update checkout action

update checkout action #70

Workflow file for this run

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