File tree 1 file changed +27
-1
lines changed
1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change 79
79
80
80
# TODO: actually do something useful here
81
81
# git clone latest version && go test -v ./...
82
+ - name : Checkout debos (for unit tests)
83
+ uses : actions/checkout@v4
84
+ with :
85
+ repository : ' go-debos/debos'
86
+ path : src/debos
87
+
88
+ - name : Checkout fakemachine (for unit tests)
89
+ uses : actions/checkout@v4
90
+ with :
91
+ repository : ' go-debos/fakemachine'
92
+ path : src/fakemachine
93
+
82
94
- name : Test Docker image
83
95
run : |
84
- docker run --rm ${{ env.TEST_TAG }} go run github.com/go-debos/debos/cmd/debos@latest --help
96
+ docker run --rm ${{ env.TEST_TAG }} -- /bin/bash -s <<EOF
97
+ # Sanity check
98
+ ls -la
99
+
100
+ # Fakemachine unit tests
101
+ cd src/fakemachine
102
+ go test -v ./...
103
+
104
+ # Debos unit tests
105
+ cd src/debos
106
+ go test -v ./...
107
+
108
+ # Sanity check exiting with error
109
+ exit 1
110
+ EOF
85
111
86
112
- name : Push Docker image
87
113
uses : docker/build-push-action@v5
You can’t perform that action at this time.
0 commit comments