[#1] Add forgejo actions
Some checks failed
/ DCO (pull_request) Successful in 50s
/ Builds (pull_request) Successful in 1m49s
/ Lint (pull_request) Successful in 4m7s
/ Test (pull_request) Failing after 1m29s

Signed-off-by: Aleksey Kravchenko <al.kravchenko@yadro.com>
This commit is contained in:
Aleksey Kravchenko 2025-01-14 13:45:40 +03:00
parent d7751246e4
commit 10fdf60eaa

View file

@ -49,14 +49,20 @@ jobs:
podman-service.sh
podman info
printf "[TestFrostFS]\ntype = frostfs\nendpoint = localhost:8080\nwallet = /config/wallet.json\nplacement_policy = REP 1\nrequest_timeout = 20s\nconnection_timeout = 21s" > /rclone.conf
mkdir config
docker run -d -v config:/config --name aio $AIO_IMAGE:$AIO_VERSION --restart always -p 8080:8080 --name aio $AIO_IMAGE:$AIO_VERSION
mkdir /config
printf "[TestFrostFS]\ntype = frostfs\nendpoint = localhost:8080\nwallet = /config/wallet.json\nplacement_policy = REP 1\nrequest_timeout = 20s\nconnection_timeout = 21s" > /config/rclone.conf
echo "run frostfs aio container"
docker run -d --name aio $AIO_IMAGE:$AIO_VERSION --restart always -p 8080:8080
echo "issue creds"
docker exec aio /usr/bin/issue-creds.sh native
echo "copy wallet"
docker cp aio:/config/user-wallet.json /config/wallet.json
echo "wait for frostfs to start"
until docker exec aio curl --fail http://localhost:8083 > /dev/null 2>&1; sleep 0.2; done;
go test -v github.com/rclone/rclone/backend/frostfs
docker remove aio --force