Skip to content

Commit 231ac69

Browse files
use reusable on code change
1 parent d3be6e1 commit 231ac69

File tree

1 file changed

+3
-45
lines changed

1 file changed

+3
-45
lines changed

.github/workflows/on-code-change.yml

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -8,51 +8,8 @@ on:
88
types: [opened, reopened, synchronize]
99

1010
jobs:
11-
static-analysis:
12-
name: Static Analysis (linting, vulns)
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v4
16-
- uses: Jahia/jahia-modules-action/static-analysis@v2
17-
with:
18-
node_version: 18
19-
auditci_level: critical
20-
21-
build:
22-
name: Build Module
23-
runs-on: self-hosted
24-
env:
25-
NEXUS_INTERNAL_URL: ${{ secrets.NEXUS_INTERNAL_URL }}
26-
container:
27-
image: jahia/cimg-mvn-cache:ga_cimg_openjdk_11.0.20-node
28-
credentials:
29-
username: ${{ secrets.DOCKERHUB_USERNAME }}
30-
password: ${{ secrets.DOCKERHUB_PASSWORD }}
31-
steps:
32-
- uses: actions/checkout@v4
33-
- uses: jahia/jahia-modules-action/build@v2
34-
with:
35-
mvn_settings_filepath: '.github/maven.settings.xml'
36-
nexus_username: ${{ secrets.NEXUS_USERNAME }}
37-
nexus_password: ${{ secrets.NEXUS_PASSWORD }}
38-
39-
sonar-analysis:
40-
name: Sonar Analysis
41-
needs: build
42-
runs-on: ubuntu-latest
43-
steps:
44-
- uses: actions/checkout@v4
45-
- uses: jahia/jahia-modules-action/sonar-analysis@v2
46-
with:
47-
primary_release_branch: master
48-
github_pr_id: ${{github.event.number}}
49-
sonar_url: ${{ secrets.SONAR_URL }}
50-
sonar_token: ${{ secrets.SONAR_TOKEN }}
51-
mvn_settings_filepath: '.github/maven.settings.xml'
52-
53-
integration-tests-standalone:
54-
uses: Jahia/jahia-modules-action/.github/workflows/reusable-integration-tests.yml@v2
55-
needs: build
11+
on-code-change:
12+
uses: Jahia/jahia-modules-action/.github/workflows/reusable-on-code-change.yml@reusable-on-code-change
5613
secrets: inherit
5714
with:
5815
jahia_image: jahia/jahia-ee-dev:8-SNAPSHOT
@@ -62,4 +19,5 @@ jobs:
6219
provisioning_manifest: provisioning-manifest-build.yml
6320
should_use_build_artifacts: true
6421
artifact_prefix: gql
22+
static_analysis_auditci_level: critical
6523
module_branch: ${{ github.head_ref }}

0 commit comments

Comments
 (0)