Skip to content

Commit 2719a9d

Browse files
committed
add github action for running tests
1 parent d2c7a40 commit 2719a9d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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-dependency-path: "docker-cloud/go.sum"
16+
cache: true
17+
- name: Build
18+
run: go build -v ./...
19+
- name: Test
20+
run: go test -v ./...

0 commit comments

Comments
 (0)