-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 976 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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"