Skip to content

Commit 54f8305

Browse files
authored
Merge pull request #5 from korenyoni/feat/testing
Feat: Add Tests to CI
2 parents 8a53948 + 47c7a48 commit 54f8305

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

codefresh.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,27 @@ steps:
1111
type: git-clone
1212
repo: "${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}"
1313
revision: "${{CF_REVISION}}"
14-
git: cf_github
14+
git: github
1515

1616
go_fmt:
1717
title: 'Formatting'
1818
stage: test
19-
image: goreleaser/goreleaser:v1.6.3
19+
image: goreleaser/goreleaser:v1.11.3
2020
commands:
2121
- go fmt
22+
23+
go_test:
24+
title: 'Run tests'
25+
stage: test
26+
image: goreleaser/goreleaser:v1.11.3
27+
environment:
28+
- TF_ACC="test"
29+
commands:
30+
- go test -v ./...
31+
retry:
32+
maxAttempts: 3
33+
delay: 5
34+
exponentialFactor: 2
2235

2336
prepare_env_vars:
2437
title: 'Preparing environment variables...'

0 commit comments

Comments
 (0)