forked from SAP/jenkins-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from hubadr/cxone-dev-merge
SAP-master 2023-08-22 upstream update
- Loading branch information
Showing
391 changed files
with
6,881 additions
and
2,798 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:base" | ||
], | ||
"ignorePaths": [ | ||
"integration/testdata/**", | ||
"test/resources/**" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,10 @@ jobs: | |
steps: | ||
- uses: styfle/[email protected] | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v1 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: zulu | ||
- name: Install Groovy | ||
run: | | ||
sudo apt-get update | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,29 +14,30 @@ jobs: | |
steps: | ||
- uses: styfle/[email protected] | ||
|
||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-java@v1 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: '1.8' | ||
java-version: 8 | ||
distribution: zulu | ||
|
||
- uses: actions/setup-go@v1 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.18.x' | ||
|
||
- name: Install Groovy | ||
run: sudo apt-get update && sudo apt-get install groovy -y | ||
|
||
- name: Cache Maven Packages | ||
uses: actions/cache@v1 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Cache Go Packages | ||
uses: actions/cache@v1 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
name: 'Format' | ||
steps: | ||
- uses: styfle/[email protected] | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Markdown Linting | ||
uses: nosborn/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,11 +12,12 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: styfle/[email protected] | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v3 | ||
# Workaround for https://github.com/SAP/jenkins-library/issues/1723, build only works with jdk8 currently | ||
- uses: actions/setup-java@v1 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: '8' | ||
java-version: 8 | ||
distribution: zulu | ||
- name: Prepare Release | ||
run: | | ||
curl --insecure --silent --location --write-out '%{http_code}' --output ./piper_master https://github.com/SAP/jenkins-library/releases/latest/download/piper_master | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: styfle/[email protected] | ||
- uses: actions/stale@v4 | ||
- uses: actions/stale@v8 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: 'Thank you for your contribution! This issue is stale because it has been open 60 days with no activity. In order to keep it open, please remove stale label or add a comment within the next 10 days. If you need a Piper team member to remove the stale label make sure to add `@SAP/jenkins-library-team` to your comment.' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: styfle/[email protected] | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v1 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.18.x' | ||
- name: Perform update | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: styfle/[email protected] | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-go@v1 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.18.x' | ||
- env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,56 +13,60 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: styfle/[email protected] | ||
- uses: actions/setup-go@v1 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.18.x' | ||
- name: Cache Golang Packages | ||
uses: actions/cache@v1 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-golang-${{ hashFiles('go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-golang- | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: unit-test | ||
uses: paambaati/[email protected] | ||
id: unit-test | ||
run: go test -tags=unit ./... -coverprofile cover.out | ||
# run code coverage upload to code climate on main branch since PR branch will not have access to secret | ||
- name: unit-test-code-climate-upload | ||
if: ${{ (github.event_name != 'pull_request') || (github.event.pull_request.head.repo.full_name == github.repository) }} | ||
uses: paambaati/codeclimate-action@v4 | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_REPORTER_ID }} | ||
with: | ||
coverageCommand: go test -tags=unit ./... -coverprofile cover.out | ||
coverageLocations: cover.out:gocov | ||
# truncate package name from file paths in report | ||
prefix: github.com/SAP/jenkins-library/ | ||
format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v1 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.18.x' | ||
- name: Cache Golang Packages | ||
uses: actions/cache@v1 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-golang-format${{ hashFiles('go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-golang-format | ||
${{ runner.os }}-golang- | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: format | ||
run: go fmt ./... | ||
- name: verify | ||
run: git diff --exit-code | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v1 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.19.x' | ||
# action requires [email protected] | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
- name: staticcheck | ||
|
@@ -73,39 +77,39 @@ jobs: | |
generate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v1 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.18.x' | ||
- name: Cache Golang Packages | ||
uses: actions/cache@v1 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-golang-generate${{ hashFiles('go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-golang-generate | ||
${{ runner.os }}-golang- | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: generate | ||
run: go run pkg/generator/step-metadata.go | ||
- name: verify | ||
run: git diff --exit-code | ||
dependencies: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v1 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.18.x' | ||
- name: Cache Golang Packages | ||
uses: actions/cache@v1 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-golang-dependencies${{ hashFiles('go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-golang-dependencies | ||
${{ runner.os }}-golang- | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: cleanup dependencies | ||
run: go mod tidy | ||
- name: verify | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,14 +14,15 @@ jobs: | |
steps: | ||
- uses: styfle/[email protected] | ||
|
||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-java@v1 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: 1.8 | ||
java-version: 8 | ||
distribution: zulu | ||
|
||
- name: Cache Maven Packages | ||
uses: actions/cache@v1 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
- uses: styfle/[email protected] | ||
- uses: actions/checkout@master | ||
|
||
- uses: actions/setup-python@v2 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.