Skip to content

Commit 424df0c

Browse files
committed
instructions on github action
1 parent 2719a9d commit 424df0c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docker-cloud/IMPLEMENTATION.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,26 @@ go get -u github.com/ory/dockertest/v3
9595
```
9696

9797
Following [docs here](https://github.com/ory/dockertest) and [example here](https://github.com/olliefr/docker-gs-ping), write some tests.
98+
99+
## GitHub action to run tests
100+
101+
Follow [guide on GitHub](https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go) to get GitHub action testing the code.
102+
103+
Pay attention to:
104+
105+
```yml
106+
defaults:
107+
run:
108+
working-directory: docker-cloud
109+
```
110+
111+
And:
112+
113+
```yml
114+
- name: Set up Go
115+
uses: actions/setup-go@v3
116+
with:
117+
go-version-file: "docker-cloud/go.mod"
118+
cache-dependency-path: "docker-cloud/go.sum"
119+
cache: true
120+
```

0 commit comments

Comments
 (0)