File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 53
53
labels : ${{ steps.meta.outputs.labels }}
54
54
cache-from : type=gha
55
55
cache-to : type=gha,mode=max
56
+ test :
57
+ runs-on : ubuntu-latest
58
+ steps :
59
+ - uses : actions/checkout@v3
60
+ - uses : docker/setup-qemu-action@v2
61
+ - uses : docker/setup-buildx-action@165fe681b849eec43aaa64d786b9ec53e690475f
62
+
63
+ - name : Start containers
64
+ run : docker-compose up --build --force-recreate --detach
65
+
66
+ - name : Run Tests
67
+ run : |
68
+ set -x
69
+ name=$(docker-compose ps | grep opi-smbios-test | awk '{print $1}')
70
+ rc=$(docker wait "${name}")
71
+ if [ "${rc}" != "0" ]; then
72
+ echo "opi-smbios-test failed:"
73
+ docker logs "${name}"
74
+ exit 1
75
+ fi
76
+
77
+ - name : Logs
78
+ if : always()
79
+ run : docker-compose logs
80
+
81
+ - name : Stop containers
82
+ if : always()
83
+ run : docker-compose down
You can’t perform that action at this time.
0 commit comments