-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (34 loc) · 1.45 KB
/
test.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
name: Test
env:
PODMAN_HOST: unix:///tmp/podman.sock
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install go
uses: actions/setup-go@v4
with:
go-version: stable
- name: setup dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgpgme-dev libbtrfs-dev libdevmapper-dev
- name: setup podman
run: |
export PODMAN_VERSION=$(go list -m all|grep github.com/containers/podman|awk '{print $2}')
curl -fsSL -o podman-linux-amd64.tar.gz https://github.com/mgoltzsche/podman-static/releases/download/${PODMAN_VERSION}/podman-linux-amd64.tar.gz
curl -fsSL -o podman-linux-amd64.tar.gz.asc https://github.com/mgoltzsche/podman-static/releases/download/${PODMAN_VERSION}/podman-linux-amd64.tar.gz.asc
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys 0CCF102C4F95D89E583FF1D4F8B5AF50344BB503
gpg --batch --verify podman-linux-amd64.tar.gz.asc podman-linux-amd64.tar.gz
tar -xzf podman-linux-amd64.tar.gz
sudo cp -r podman-linux-amd64/usr podman-linux-amd64/etc /
echo "PODMAN_HOST: $PODMAN_HOST"
/usr/local/bin/podman system service --time=0 $PODMAN_HOST &
export CONTAINER_HOST=$PODMAN_HOST
/usr/local/bin/podman --remote version
- name: test
run: |
TRACE=1 go test -v -timeout=1h