Skip to content

Commit a8f488c

Browse files
committed
simplify github action definitions
1 parent 6ae4121 commit a8f488c

File tree

2 files changed

+20
-22
lines changed

2 files changed

+20
-22
lines changed

.github/workflows/docker-cloud-test.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/docker-cloud-publish.yml renamed to .github/workflows/docker-cloud.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
1-
name: docker-cloud go publish
2-
on: push
1+
name: docker-cloud go tests
2+
on: [push]
33
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 ./...
421
publish:
22+
needs: test
523
permissions:
624
id-token: write
725
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)