Skip to content

Commit 14ce468

Browse files
committed
add github action for running tests
1 parent d2c7a40 commit 14ce468

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: docker-cloud go tests
2+
on: [push]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
defaults:
7+
run:
8+
working-directory: ./docker-cloud
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Set up Go
12+
uses: actions/setup-go@v3
13+
with:
14+
go-version-file: "docker-cloud/go.mod"
15+
cache: true
16+
- name: Build
17+
run: go build -v ./...
18+
- name: Test
19+
run: go test -v ./...

0 commit comments

Comments
 (0)