1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00

chore: streamline GH actions (#1246)

* chore: streamline GH actions

* force use of local piper

* look for piper in project root

* use local piper

* Update .github/workflows/verify-go.yml

* remove chmod
This commit is contained in:
Christopher Fenner
2020-03-05 13:35:35 +01:00
committed by GitHub
parent 507bf3f98d
commit 0b3b4aae3d
2 changed files with 6 additions and 5 deletions

View File

@@ -64,10 +64,11 @@ jobs:
- name: checkout
uses: actions/checkout@v2
- name: build
run: CGO_ENABLED=0 go build -o piper -tags release && chmod +x piper # with `-tags release` we ensure that shared test utilities won't end up in the binary
env:
CGO_ENABLED: 0
# with `-tags release` we ensure that shared test utilities won't end up in the binary
run: go build -o piper -tags release
- name: test
env:
PIPER_INTEGRATION_GITHUB_TOKEN: ${{secrets.PIPER_INTEGRATION_GITHUB_TOKEN}}
run: |
export PATH=$PATH:$(pwd)
go test -tags=integration ./integration/...
run: go test -tags=integration ./integration/...

View File

@@ -36,7 +36,7 @@ func getPiperExecutable() string {
f := piperutils.Files{}
wd, _ := os.Getwd()
localPiper := path.Join(wd, "piper")
localPiper := path.Join(wd, "..", "piper")
exists, _ := f.FileExists(localPiper)
if exists {
fmt.Println("Piper executable for integration test: " + localPiper)