Skip to content

Commit

Permalink
Merge pull request #397 from JanssenProject/repo_sync
Browse files Browse the repository at this point in the history
ci(workflows): synchronize workflows from JanssenProject/jans-cloud-native
  • Loading branch information
ossdhaval authored Jan 4, 2022
2 parents 8635856 + 11d2038 commit dd19148
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 12 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/central_code_quality_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,25 @@ on:
branches:
- master
- main
- "!update-pycloud-in-**"
paths-ignore:
- 'docker-jans-**/CHANGELOG.md'
- 'docker-jans-**/version.txt'
- 'jans-pycloudlib/CHANGELOG.md'
- 'jans-pycloudlib/jans/pycloudlib/version.py'
- '**.md'

pull_request:
branches:
- master
- main
- "!update-pycloud-in-**"
paths-ignore:
- 'docker-jans-**/CHANGELOG.md'
- 'docker-jans-**/version.txt'
- 'jans-pycloudlib/CHANGELOG.md'
- 'jans-pycloudlib/jans/pycloudlib/version.py'
- '**.md'
workflow_dispatch:
jobs:
build:
Expand All @@ -30,15 +45,6 @@ jobs:
NON_JVM_PROJECTS: |
JanssenProject/jans-setup
JanssenProject/jans-cli
JanssenProject/docker-jans-persistence-loader
JanssenProject/docker-jans-client-api
JanssenProject/jans-pycloudlib
JanssenProject/docker-jans-auth-server
JanssenProject/docker-jans-fido2
JanssenProject/docker-jans-scim
JanssenProject/docker-jans-config-api
JanssenProject/docker-jans-certmanager
JanssenProject/docker-jans-configuration-manager
JanssenProject/jans-cloud-native
steps:
- uses: actions/checkout@v2
Expand All @@ -48,15 +54,15 @@ jobs:
- name: Set up JDK 11
# JanssenProject/jans-cli is too similar to JanssenProject/jans-client-api as the contains function is returning it belonging to the JVM_PROJECT
if: contains(env.JVM_PROJECTS, github.repository) && github.repository != 'JanssenProject/jans-cli'
uses: actions/setup-java@v2.3.1
uses: actions/setup-java@v2.5.0
with:
java-version: '11'
distribution: 'adopt'

- name: Cache SonarCloud packages for JVM based project
# JanssenProject/jans-cli is too similar to JanssenProject/jans-client-api as the contains function is returning it belonging to the JVM_PROJECT
if: contains(env.JVM_PROJECTS, github.repository) && github.repository != 'JanssenProject/jans-cli'
uses: actions/cache@v2.1.6
uses: actions/cache@v2.1.7
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
Expand Down
23 changes: 22 additions & 1 deletion .github/workflows/commit-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,39 @@
name: 'Commit Message Check'
on:
pull_request:
branches-ignore:
- "update-pycloud-in-**"
types:
- opened
- edited
- reopened
- synchronize
paths:
- "!docker-jans-**/CHANGELOG.md"
- "!docker-jans-**/version.txt"
- "!jans-pycloudlib/CHANGELOG.md"
- "!jans-pycloudlib/jans/pycloudlib/version.py"
pull_request_target:
branches-ignore:
- "update-pycloud-in-**"
types:
- opened
- edited
- reopened
- synchronize
paths:
- "!docker-jans-**/CHANGELOG.md"
- "!docker-jans-**/version.txt"
- "!jans-pycloudlib/CHANGELOG.md"
- "!jans-pycloudlib/jans/pycloudlib/version.py"
push:
branches-ignore:
- "update-pycloud-in-**"
paths:
- "!docker-jans-**/CHANGELOG.md"
- "!docker-jans-**/version.txt"
- "!jans-pycloudlib/CHANGELOG.md"
- "!jans-pycloudlib/jans/pycloudlib/version.py"

jobs:
check-commit-message:
Expand All @@ -27,7 +48,7 @@ jobs:
# We need to fetch with a depth of 2 for pull_request so we can do HEAD^2
fetch-depth: 2

- uses: actions/setup-node@v2.4.1
- uses: actions/setup-node@v2.5.0
with:
node-version: 14
- run: |
Expand Down

0 comments on commit dd19148

Please sign in to comment.