Support macOS #28
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: CI | |
on: | |
push: | |
branches: | |
- master | |
- 'release/**' | |
pull_request: | |
jobs: | |
main: | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23.x | |
- name: Install | |
run: | | |
set -eux | |
make | |
sudo make install | |
- name: Smoke test | |
timeout-minutes: 5 | |
run: | | |
set -eux | |
cd examples/victim | |
go build | |
gomodjail run --go-mod=go.mod -- ./victim | |
- name: "Smoke test: docker (not dockerd)" | |
timeout-minutes: 5 | |
run: | | |
set -eux | |
DOCKER="gomodjail run --go-mod=./examples/profiles/docker.mod -- docker" | |
$DOCKER buildx create --name foo --use | |
cat <<EOF | $DOCKER buildx build -t foo --load - | |
FROM alpine | |
RUN apk add bash | |
EOF | |
$DOCKER run --rm foo /bin/bash -c "echo hi" |