You've already forked sap-jenkins-library
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:
committed by
GitHub
parent
507bf3f98d
commit
0b3b4aae3d
9
.github/workflows/verify-go.yml
vendored
9
.github/workflows/verify-go.yml
vendored
@@ -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/...
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user