13
13
name : Static Analysis (linting, vulns)
14
14
runs-on : ubuntu-latest
15
15
steps :
16
- - uses : actions/checkout@v2
16
+ - uses : actions/checkout@v4
17
17
- uses : Jahia/jahia-modules-action/static-analysis@v2
18
18
with :
19
19
# In some situations it might be necessary to specify a particular version of node
29
29
username : ${{ secrets.DOCKERHUB_USERNAME }}
30
30
password : ${{ secrets.DOCKERHUB_PASSWORD }}
31
31
steps :
32
- - uses : actions/checkout@v2
32
+ - uses : actions/checkout@v4
33
33
- uses : jahia/jahia-modules-action/build@v2
34
34
with :
35
35
module_id : richtext-configuration
39
39
needs : build
40
40
runs-on : ubuntu-latest
41
41
steps :
42
- - uses : actions/checkout@v2
42
+ - uses : actions/checkout@v4
43
43
- uses : jahia/jahia-modules-action/sonar-analysis@v2
44
44
with :
45
45
# If the primary release branch is other than "main", specify it here
@@ -48,107 +48,60 @@ jobs:
48
48
sonar_url : ${{ secrets.SONAR_URL }}
49
49
sonar_token : ${{ secrets.SONAR_TOKEN }}
50
50
51
- # integration-tests:
52
- # name: Integration Tests
53
- # needs: build
54
- # # Use self-hosted if you want to run on our own runners
55
- # # you would typically want to use self-hosted runners for integration tests
56
- # runs-on: self-hosted
57
- # # Timeout is important as it forces the job to fail if it hangs for any reason,
58
- # # If not specified it will be left running until workflow run limit is reached (72h)
59
- # timeout-minutes: 45
60
- # steps:
61
- # # The helper is used to print instructions, such as how to connect to the runner.
62
- # # It should be defined as a workflow step (vs a step in an action itself) since some
63
- # # annotations are only posted upon completion of the step (i.e. you'd only see
64
- # # the connection instructions annotation posted once the integration tests are done)
65
- # - uses: jahia/jahia-modules-action/helper@v2
66
- # - uses: actions/checkout@v2
67
- # - uses: KengoTODA/actions-setup-docker-compose@main
68
- # with:
69
- # version: '1.29.2'
70
- # - uses: actions/setup-node@v2
71
- # with:
72
- # node-version: 'lts/*'
73
- # - uses: jahia/jahia-modules-action/integration-tests@v2
74
- # with:
75
- # module_id: richtext-configuration
76
- # testrail_project: Richtext Configuration Module
77
- # artifact_name: Integration-Tests-Standalone
78
- # tests_manifest: provisioning-manifest-build.yml
79
- # jahia_image: jahia/jahia-discovery-dev:8-SNAPSHOT
80
- # should_use_build_artifacts: true
81
- # github_artifact_name: jexp-standalone-artifacts-${{ github.run_number }}
82
- # bastion_ssh_private_key: ${{ secrets.BASTION_SSH_PRIVATE_KEY_JAHIACI }}
83
- # jahia_license: ${{ secrets.JAHIA_LICENSE_8X_FULL }}
84
- # docker_username: ${{ secrets.DOCKERHUB_USERNAME }}
85
- # docker_password: ${{ secrets.DOCKERHUB_PASSWORD }}
86
- # nexus_username: ${{ secrets.NEXUS_USERNAME }}
87
- # nexus_password: ${{ secrets.NEXUS_PASSWORD }}
88
- # # Test report is useful when posting annotation if multiple similar jobs are performed
89
- # # For example, there could be one report for standalone and one report for cluster test
90
- # # It is not needed if there is only one type of integration tests within the workflow
91
- # tests_report_name: Test report (Standalone)
92
- # testrail_username: ${{ secrets.TESTRAIL_USERNAME }}
93
- # testrail_password: ${{ secrets.TESTRAIL_PASSWORD }}
94
- # incident_pagerduty_api_key: ${{ secrets.INCIDENT_PAGERDUTY_API_KEY }}
95
- # incident_pagerduty_reporter_email: ${{ secrets.INCIDENT_PAGERDUTY_REPORTER_EMAIL }}
96
- # incident_pagerduty_reporter_id: ${{ secrets.INCIDENT_PAGERDUTY_REPORTER_ID }}
97
- # incident_google_spreadsheet_id: ${{ secrets.INCIDENT_GOOGLE_SPREADSHEET_ID }}
98
- # incident_google_client_email: ${{ secrets.INCIDENT_GOOGLE_CLIENT_EMAIL }}
99
- # incident_google_api_key_base64: ${{ secrets.INCIDENT_GOOGLE_API_KEY_BASE64 }}
100
- # zencrepes_secret: ${{ secrets.ZENCREPES_WEBHOOK_SECRET }}
101
- # - name: Test Report
102
- # uses: dorny/test-reporter@v1
103
- # if: success() || failure()
104
- # with:
105
- # name: Tests Report (Standalone)
106
- # path: tests/artifacts/results/xml_reports/*.xml
107
- # reporter: java-junit
108
- # fail-on-error: 'false'
109
- #
110
- # # Using cluster tests might require a particular setup (i.e. with the use of a reverse proxy)
111
- # # Such configuration is handled directly by the repo executing the tests, the commented snippet
112
- # # below is only there to highlight differences with the standalone tests
113
- # # integration-tests-cluster:
114
- # # name: Integration Tests (Cluster)
115
- # # needs: build
116
- # # runs-on: self-hosted
117
- # # timeout-minutes: 45
118
- # # steps:
119
- # # - uses: jahia/jahia-modules-action/helper@v2
120
- # # - uses: actions/checkout@v2
121
- # # - uses: jahia/jahia-modules-action/integration-tests@v2
122
- # # with:
123
- # # module_id: sitmap
124
- # # testrail_project: Sitemap Module
125
- # # artifact_name: Integration-Tests-Cluster
126
- # # tests_manifest: provisioning-manifest-build.yml
127
- # # jahia_image: jahia/jahia-ee:8
128
- # # jahia_cluster_enabled: true
129
- # # should_use_build_artifacts: true
130
- # # jahia_license: ${{ secrets.JAHIA_LICENSE_8X_FULL }}
131
- # # docker_username: ${{ secrets.DOCKERHUB_USERNAME }}
132
- # # docker_password: ${{ secrets.DOCKERHUB_PASSWORD }}
133
- # # nexus_username: ${{ secrets.NEXUS_USERNAME }}
134
- # # nexus_password: ${{ secrets.NEXUS_PASSWORD }}
135
- # # tests_report_name: Test report (Cluster)
136
- # # testrail_username: ${{ secrets.TESTRAIL_USERNAME }}
137
- # # testrail_password: ${{ secrets.TESTRAIL_PASSWORD }}
138
- # # incident_pagerduty_api_key: ${{ secrets.INCIDENT_PAGERDUTY_API_KEY }}
139
- # # incident_pagerduty_reporter_email: ${{ secrets.INCIDENT_PAGERDUTY_REPORTER_EMAIL }}
140
- # # incident_pagerduty_reporter_id: ${{ secrets.INCIDENT_PAGERDUTY_REPORTER_ID }}
141
- # # incident_google_spreadsheet_id: ${{ secrets.INCIDENT_GOOGLE_SPREADSHEET_ID }}
142
- # # incident_google_client_email: ${{ secrets.INCIDENT_GOOGLE_CLIENT_EMAIL }}
143
- # # incident_google_api_key_base64: ${{ secrets.INCIDENT_GOOGLE_API_KEY_BASE64 }}
144
- # # zencrepes_secret: ${{ secrets.ZENCREPES_WEBHOOK_SECRET }}
145
- #
146
- # # Tmate only starts if any of the previous steps fails.
147
- # # Be careful since it also means that if a step fails the workflow will
148
- # # keep running until it reaches the timeout.
149
- # # Tmate is only useful with github-hosted runners. With self-hosted runners
150
- # # you can SSH directly into the running using instructions provided by the helper
151
- # # - name: Setup tmate session
152
- # # if: ${{ failure() }}
153
- # # uses: mxschmitt/action-tmate@v3
154
- # # timeout-minutes: 15
51
+ integration-tests :
52
+ name : Integration Tests
53
+ needs : build
54
+ # Use self-hosted if you want to run on our own runners
55
+ # you would typically want to use self-hosted runners for integration tests
56
+ runs-on : self-hosted
57
+ # Timeout is important as it forces the job to fail if it hangs for any reason,
58
+ # If not specified it will be left running until workflow run limit is reached (72h)
59
+ timeout-minutes : 45
60
+ steps :
61
+ # The helper is used to print instructions, such as how to connect to the runner.
62
+ # It should be defined as a workflow step (vs a step in an action itself) since some
63
+ # annotations are only posted upon completion of the step (i.e. you'd only see
64
+ # the connection instructions annotation posted once the integration tests are done)
65
+ - uses : jahia/jahia-modules-action/helper@v2
66
+ - uses : actions/checkout@v4
67
+ - uses : KengoTODA/actions-setup-docker-compose@main
68
+ with :
69
+ version : ' 2.23.0'
70
+ - uses : actions/setup-node@v4
71
+ with :
72
+ node-version : ' lts/*'
73
+ - uses : jahia/jahia-modules-action/integration-tests@v2
74
+ with :
75
+ module_id : richtext-configuration
76
+ testrail_project : Richtext Configuration Module
77
+ tests_manifest : provisioning-manifest-build.yml
78
+ jahia_image : jahia/jahia-discovery-dev:8-SNAPSHOT
79
+ should_use_build_artifacts : true
80
+ github_artifact_name : richtext-configuration-artifacts-${{ github.run_number }}
81
+ bastion_ssh_private_key : ${{ secrets.BASTION_SSH_PRIVATE_KEY_JAHIACI }}
82
+ jahia_license : ${{ secrets.JAHIA_LICENSE_8X_FULL }}
83
+ docker_username : ${{ secrets.DOCKERHUB_USERNAME }}
84
+ docker_password : ${{ secrets.DOCKERHUB_PASSWORD }}
85
+ nexus_username : ${{ secrets.NEXUS_USERNAME }}
86
+ nexus_password : ${{ secrets.NEXUS_PASSWORD }}
87
+ # Test report is useful when posting annotation if multiple similar jobs are performed
88
+ # For example, there could be one report for standalone and one report for cluster test
89
+ # It is not needed if there is only one type of integration tests within the workflow
90
+ tests_report_name : Test report (Standalone)
91
+ testrail_username : ${{ secrets.TESTRAIL_USERNAME }}
92
+ testrail_password : ${{ secrets.TESTRAIL_PASSWORD }}
93
+ incident_pagerduty_api_key : ${{ secrets.INCIDENT_PAGERDUTY_API_KEY }}
94
+ incident_pagerduty_reporter_email : ${{ secrets.INCIDENT_PAGERDUTY_REPORTER_EMAIL }}
95
+ incident_pagerduty_reporter_id : ${{ secrets.INCIDENT_PAGERDUTY_REPORTER_ID }}
96
+ incident_google_spreadsheet_id : ${{ secrets.INCIDENT_GOOGLE_SPREADSHEET_ID }}
97
+ incident_google_client_email : ${{ secrets.INCIDENT_GOOGLE_CLIENT_EMAIL }}
98
+ incident_google_api_key_base64 : ${{ secrets.INCIDENT_GOOGLE_API_KEY_BASE64 }}
99
+ zencrepes_secret : ${{ secrets.ZENCREPES_WEBHOOK_SECRET }}
100
+ - name : Test Report
101
+ uses : dorny/test-reporter@v1
102
+ if : success() || failure()
103
+ with :
104
+ name : Tests Report (Standalone)
105
+ path : tests/artifacts/results/xml_reports/**/*.xml
106
+ reporter : java-junit
107
+ fail-on-error : ' false'
0 commit comments