Skip to content

Commit 7ce2ad0

Browse files
committed
BACKLOG-21821 Add github config
1 parent b0ab4de commit 7ce2ad0

File tree

10 files changed

+655
-0
lines changed

10 files changed

+655
-0
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Issue Report
2+
3+
(A clear and concise description of the issue)
4+
5+
## Expected Behavior
6+
7+
(Write out the expected behavior here.)
8+
9+
## Actual Behavior
10+
11+
(Write out what actually happened here.)
12+
13+
## Steps to Reproduce the Issue
14+
15+
(Write out detailed steps to reproduce the issue here.)

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!--
2+
When lists are present, the item can be:
3+
- Deleted: The item is not applicable to the PR
4+
- Unchecked: The item is not done yet, but should be done as part of the PR
5+
- Checked: The item has been done
6+
-->
7+
8+
## JIRA
9+
10+
<!--
11+
Please link the JIRA issue related to this PR.
12+
You can replace "PROJECT" by your project name in this template, so only the issue number needs to be replaced by the PR author.
13+
-->
14+
15+
https://jira.jahia.org/browse/PROJECT-XXX
16+
17+
## Description
18+
19+
<!--
20+
Please describe what your change is about.
21+
If you made specific implementation choices worth an explanation, those can be detailed in this section
22+
-->
23+
24+
## Tests
25+
26+
The following are included in this PR
27+
- [ ] Unit Tests (Most changes _should_ have unit tests)
28+
- [ ] Integration Tests
29+
30+
## Checklist
31+
32+
<!--
33+
This section contains a set of non-automated checks, it is there to remind you to think about some business critical topics.
34+
If some are not applicable they could simply be deleted deleted.
35+
If you need to provide more details, please use the description section.
36+
-->
37+
38+
I have considered the following implications of my change:
39+
40+
- [ ] Security (in particular for changes to authentication, authorization, data fetching, ...)
41+
- [ ] Performance
42+
- [ ] Migration
43+
- [ ] Code maintainability
44+
45+
## Documentation
46+
47+
<!--
48+
Indicate if you have been writing documentation has part of this change.
49+
-->
50+
51+
- [ ] Inline documentation
52+
- [ ] Internal Documentation (wiki)
53+
- [ ] User-facing Documentation

.github/maven.settings.xml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<?xml version="1.0"?>
2+
<settings>
3+
<profiles>
4+
<profile>
5+
<id>jahia-internal-repository</id>
6+
<repositories>
7+
<repository>
8+
<snapshots>
9+
<enabled>true</enabled>
10+
</snapshots>
11+
<id>central</id>
12+
<name>Central Repository</name>
13+
<url>https://repo1.maven.org/maven2/</url>
14+
</repository>
15+
<repository>
16+
<id>jahia-internal</id>
17+
<name>Jahia Internal Repository</name>
18+
<url>${env.NEXUS_INTERNAL_URL}</url>
19+
<releases>
20+
<enabled>true</enabled>
21+
<updatePolicy>never</updatePolicy>
22+
</releases>
23+
<snapshots>
24+
<enabled>true</enabled>
25+
<updatePolicy>always</updatePolicy>
26+
</snapshots>
27+
</repository>
28+
</repositories>
29+
</profile>
30+
<profile>
31+
<id>sonar</id>
32+
<activation>
33+
<activeByDefault>true</activeByDefault>
34+
</activation>
35+
<properties>
36+
<sonar.host.url>${env.SONAR_URL}</sonar.host.url>
37+
<sonar.login>${env.SONAR_TOKEN}</sonar.login>
38+
</properties>
39+
</profile>
40+
</profiles>
41+
42+
<activeProfiles>
43+
<activeProfile>jahia-internal-repository</activeProfile>
44+
<activeProfile>unit-tests</activeProfile>
45+
</activeProfiles>
46+
47+
<servers>
48+
<server>
49+
<id>jahia-releases</id>
50+
<username>${env.NEXUS_USERNAME}</username>
51+
<password>${env.NEXUS_PASSWORD}</password>
52+
</server>
53+
<server>
54+
<id>jahia-enterprise</id>
55+
<username>${env.NEXUS_USERNAME}</username>
56+
<password>${env.NEXUS_PASSWORD}</password>
57+
</server>
58+
<server>
59+
<id>jahia-snapshots</id>
60+
<username>${env.NEXUS_USERNAME}</username>
61+
<password>${env.NEXUS_PASSWORD}</password>
62+
</server>
63+
<server>
64+
<id>jahia-internal</id>
65+
<username>${env.NEXUS_USERNAME}</username>
66+
<password>${env.NEXUS_PASSWORD}</password>
67+
</server>
68+
<server>
69+
<id>jahia-enterprise-snapshots</id>
70+
<username>${env.NEXUS_USERNAME}</username>
71+
<password>${env.NEXUS_PASSWORD}</password>
72+
</server>
73+
<server>
74+
<id>jahia-enterprise-releases</id>
75+
<username>${env.NEXUS_USERNAME}</username>
76+
<password>${env.NEXUS_PASSWORD}</password>
77+
</server>
78+
<server>
79+
<id>staging-repository</id>
80+
<username>${env.NEXUS_USERNAME}</username>
81+
<password>${env.NEXUS_PASSWORD}</password>
82+
</server>
83+
</servers>
84+
</settings>

.github/release-notes.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
changelog:
2+
sections:
3+
- title: "Enhancements"
4+
labels: ["new"]
5+
- title: "Bugs"
6+
labels: ["fix"]
7+

.github/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- ignore-for-release
5+
categories:
6+
- title: Exciting New Features 🎉
7+
labels:
8+
- v1.11
9+
- enhancement
10+
- title: Bug fixes 🛠
11+
labels:
12+
- v1.11
13+
- bugfix
14+
- title: Other Changes
15+
labels:
16+
- "*"

.github/workflows/manual-run.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# This workflows can be triggered manually via the GitHub actions UI
2+
# It is used to trigger an integration tests run using snapshot artifacts
3+
# You can customize it with any parameters necesasry.
4+
# Note that workflow_dispatch workflows are only available from master.
5+
# So you'll need to first merge it to be able to start testing it, but once
6+
# a first version is merged, you can point the GitHub UI towards a manual-run.yml workflow in a branch
7+
# So merge this one early, even if its configuration is not fully finalized
8+
#
9+
# Github actions command reference: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
10+
# Our GitHub Action is available here: https://github.com/Jahia/jahia-modules-action
11+
name: Manual Tests Run
12+
13+
on:
14+
workflow_dispatch:
15+
inputs:
16+
jahia_image:
17+
description: 'Jahia Image'
18+
required: true
19+
default: 'jahia/jahia-discovery-dev:8-SNAPSHOT'
20+
manifest:
21+
description: 'Provisioning manifest. Can be a local repository file in the tests folder or a publicly accessible link'
22+
required: true
23+
default: 'provisioning-manifest-snapshot.yml'
24+
25+
# Please see "on-code-change.yml" for instructions on integration-tests
26+
jobs:
27+
integration-tests:
28+
name: Integration Tests
29+
runs-on: self-hosted
30+
steps:
31+
- uses: jahia/jahia-modules-action/helper@v2
32+
- uses: actions/checkout@v2
33+
- uses: KengoTODA/actions-setup-docker-compose@main
34+
with:
35+
version: '1.29.2'
36+
- uses: actions/setup-node@v2
37+
with:
38+
node-version: 'lts/*'
39+
- uses: jahia/jahia-modules-action/integration-tests@v2
40+
with:
41+
module_id: richtext-configuration
42+
testrail_project: Richtext Configuration Module
43+
jahia_image: ${{ github.event.inputs.jahia_image }}
44+
should_use_build_artifacts: false
45+
should_skip_artifacts: true
46+
should_skip_notifications: true
47+
should_skip_testrail: false
48+
should_skip_zencrepes: true
49+
github_artifact_name: richtext-configuration-standalone-artifacts-${{ github.run_number }}
50+
bastion_ssh_private_key: ${{ secrets.BASTION_SSH_PRIVATE_KEY_JAHIACI }}
51+
tests_manifest: ${{ github.event.inputs.manifest }}
52+
jahia_license: ${{ secrets.JAHIA_LICENSE_8X_FULL }}
53+
docker_username: ${{ secrets.DOCKERHUB_USERNAME }}
54+
docker_password: ${{ secrets.DOCKERHUB_PASSWORD }}
55+
nexus_username: ${{ secrets.NEXUS_USERNAME }}
56+
nexus_password: ${{ secrets.NEXUS_PASSWORD }}
57+
testrail_username: ${{ secrets.TESTRAIL_USERNAME }}
58+
testrail_password: ${{ secrets.TESTRAIL_PASSWORD }}
59+
incident_pagerduty_api_key: ${{ secrets.INCIDENT_PAGERDUTY_API_KEY }}
60+
incident_pagerduty_reporter_email: ${{ secrets.INCIDENT_PAGERDUTY_REPORTER_EMAIL }}
61+
incident_pagerduty_reporter_id: ${{ secrets.INCIDENT_PAGERDUTY_REPORTER_ID }}
62+
incident_google_spreadsheet_id: ${{ secrets.INCIDENT_GOOGLE_SPREADSHEET_ID }}
63+
incident_google_client_email: ${{ secrets.INCIDENT_GOOGLE_CLIENT_EMAIL }}
64+
incident_google_api_key_base64: ${{ secrets.INCIDENT_GOOGLE_API_KEY_BASE64 }}
65+
zencrepes_secret: ${{ secrets.ZENCREPES_WEBHOOK_SECRET }}
66+
- name: Test Report
67+
uses: dorny/test-reporter@v1
68+
if: success() || failure()
69+
with:
70+
name: Tests Report (Standalone)
71+
path: tests/artifacts/results/xml_reports/*.xml
72+
reporter: java-junit
73+
fail-on-error: 'false'

0 commit comments

Comments
 (0)