File tree Expand file tree Collapse file tree 2 files changed +20
-25
lines changed Expand file tree Collapse file tree 2 files changed +20
-25
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- name : docker-cloud go publish
2
- on : push
1
+ name : docker-cloud go tests
2
+ on : [push]
3
+ defaults :
4
+ run :
5
+ working-directory : docker-cloud
3
6
jobs :
7
+ test :
8
+ runs-on : ubuntu-latest
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 ./...
4
21
publish :
22
+ needs : test
5
23
permissions :
6
24
id-token : write
7
25
runs-on : ubuntu-latest
8
- defaults :
9
- run :
10
- working-directory : docker-cloud
11
26
steps :
12
27
- uses : actions/checkout@v3
13
28
- name : Configure AWS Credentials
You can’t perform that action at this time.
0 commit comments