Skip to content

Commit

Permalink
Merge branch 'master' into whitesource-sbt-config-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maksd authored Nov 9, 2022
2 parents 94bee47 + ad36fe5 commit 94532e1
Show file tree
Hide file tree
Showing 219 changed files with 4,641 additions and 1,808 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build-adr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish ADR
on:
push:
branches:
- main
paths:
- 'documentation/adr/**'
jobs:
build-adr-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# required by Log4brains to work correctly (needs the whole Git history)
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "14"
- name: Install Log4brains And Build ADRs
run: |
npm install -g log4brains
log4brains build --basePath /${GITHUB_REPOSITORY}/adr
- name: Publish ADRs
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: .log4brains/out
target-folder: adr
71 changes: 71 additions & 0 deletions .github/workflows/consumer-tests-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Consumer tests (Pull Request)

on:
issue_comment:
types:
- created
- edited

jobs:
consumer_tests:
name: Consumer tests
if: |
(
github.event.comment.body == '/it' ||
github.event.comment.body == '/it-consumer'
) && (
github.event.comment.author_association == 'COLLABORATOR' ||
github.event.comment.author_association == 'OWNER' ||
github.event.comment.author_association == 'MEMBER'
)
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: styfle/[email protected]
- name: Get pull request URL
id: pull_request
run: |
echo "::set-output name=pull_request::$(curl ${{ github.event.comment.issue_url }} |
jq '.pull_request.url' |
sed 's/\"//g')"
- name: Get repository
id: repository
run: |
echo "::set-output name=repository::$(curl ${{ steps.pull_request.outputs.pull_request }} |
jq '.head.repo.full_name' |
sed 's/\"//g')"
- name: Get branch name
id: branch_name
run: |
echo "::set-output name=branch_name::$(curl ${{ steps.pull_request.outputs.pull_request }} |
jq '.head.ref' |
sed 's/\"//g')"
- uses: actions/checkout@v3
with:
repository: ${{ steps.repository.outputs.repository }}
ref: ${{ steps.branch_name.outputs.branch_name }}
- uses: actions/setup-java@v1
with:
java-version: 11
- name: Install Groovy
run: |
sudo apt-get update
sudo apt-get install groovy -y
- name: Setup Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "piper-testing-bot"
- name: Run tests
env:
REPOSITORY_UNDER_TEST: ${{ github.repository }}
BRANCH_NAME: ${{ github.ref_name }}
BUILD_WEB_URL: https://github.com/SAP/jenkins-library/actions/runs/${{ github.run_id }}
INTEGRATION_TEST_VOTING_TOKEN: ${{ secrets.INTEGRATION_TEST_VOTING_TOKEN }}
CX_INFRA_IT_CF_USERNAME: ${{ secrets.CX_INFRA_IT_CF_USERNAME }}
CX_INFRA_IT_CF_PASSWORD: ${{ secrets.CX_INFRA_IT_CF_PASSWORD }}
NEO_DEPLOY_USERNAME: ${{ secrets.NEO_DEPLOY_USERNAME }}
NEO_DEPLOY_PASSWORD: ${{ secrets.NEO_DEPLOY_PASSWORD }}
CX_INFRA_IT_TMS_UPLOAD: ${{ secrets.CX_INFRA_IT_TMS_UPLOAD }}
run: |
cd ./consumer-test
groovy consumerTestController.groovy
41 changes: 41 additions & 0 deletions .github/workflows/consumer-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Consumer tests

on:
push:
branches:
- master
- it/**

jobs:
consumer_tests:
name: Consumer tests
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: styfle/[email protected]
- uses: actions/checkout@v3
- uses: actions/setup-java@v1
with:
java-version: 11
- name: Install Groovy
run: |
sudo apt-get update
sudo apt-get install groovy -y
- name: Setup Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "piper-testing-bot"
- name: Run tests
env:
REPOSITORY_UNDER_TEST: ${{ github.repository }}
BRANCH_NAME: ${{ github.ref_name }}
BUILD_WEB_URL: https://github.com/SAP/jenkins-library/actions/runs/${{ github.run_id }}
INTEGRATION_TEST_VOTING_TOKEN: ${{ secrets.INTEGRATION_TEST_VOTING_TOKEN }}
CX_INFRA_IT_CF_USERNAME: ${{ secrets.CX_INFRA_IT_CF_USERNAME }}
CX_INFRA_IT_CF_PASSWORD: ${{ secrets.CX_INFRA_IT_CF_PASSWORD }}
NEO_DEPLOY_USERNAME: ${{ secrets.NEO_DEPLOY_USERNAME }}
NEO_DEPLOY_PASSWORD: ${{ secrets.NEO_DEPLOY_PASSWORD }}
CX_INFRA_IT_TMS_UPLOAD: ${{ secrets.CX_INFRA_IT_TMS_UPLOAD }}
run: |
cd ./consumer-test
groovy consumerTestController.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: styfle/[email protected]

- uses: actions/checkout@v2

Expand Down
97 changes: 0 additions & 97 deletions .github/workflows/integration-tests-pr.yaml

This file was deleted.

Loading

0 comments on commit 94532e1

Please sign in to comment.