-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
373 changed files
with
7,039 additions
and
4,129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- In release note : | ||
- In chapter : Features Bugs Tasks | ||
- Text : #xxx ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
name: Test with old mongo & keycloak versions | ||
|
||
on: | ||
schedule: | ||
# launch a build every day on develop | ||
- cron: '0 23 * * *' | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Job status | ||
run: | | ||
export OF_VERSION=$(<VERSION) | ||
echo "----------------------------" | ||
echo "Trigger by : ${{ github.event_name }}" | ||
echo "On branch : ${{ github.ref_name }} " | ||
echo "---------------------------" | ||
- name: Cache Gradle packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle.properties','**/*.gradle') }} | ||
restore-keys: ${{ runner.os }}-gradle | ||
|
||
- name: Install | ||
run: ./CICD/github/install.sh | ||
|
||
- name: Build | ||
run: | | ||
./CICD/github/build.sh | ||
./CICD/github/setOldMongoKeycloakVersions.sh | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
|
||
- name: Karate tests | ||
run: ./CICD/github/launch_karate_tests.sh | ||
|
||
- name: Cypress tests | ||
run: ./CICD/github/launch_cypress_tests.sh | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright (c) 2022, RTE (http://www.rte-france.com) | ||
# See AUTHORS.txt | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# This file is part of the OperatorFabric project. | ||
|
||
|
||
# Script launch form the root of the git projet by github actions | ||
|
||
export OF_VERSION=$(<VERSION) | ||
docker-compose -f src/main/docker/test-environment/docker-compose.yml up -d | ||
source $HOME/.sdkman/bin/sdkman-init.sh; | ||
export NVM_DIR="$HOME/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | ||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | ||
source ./bin/load_environment_light.sh; | ||
echo "npm version $(npm -version)" | ||
echo "node version $(node --version)" | ||
sdk version | ||
javac -version | ||
./gradlew --version | ||
./gradlew --build-cache copyDependencies test jacocoTestReport sonarqube dockerTag${OF_VERSION} | ||
status_code=$? | ||
docker-compose -f src/main/docker/test-environment/docker-compose.yml down | ||
# propage the status code for github actions | ||
exit $status_code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright (c) 2022, RTE (http://www.rte-france.com) | ||
# See AUTHORS.txt | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# This file is part of the OperatorFabric project. | ||
|
||
|
||
# Script launch form the root of the git projet by github actions | ||
|
||
curl -s "https://get.sdkman.io" | bash ; | ||
echo sdkman_auto_answer=true > $HOME/.sdkman/etc/config ; | ||
echo sdkman_auto_selfupdate=true >> $HOME/.sdkman/etc/config ; | ||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash | ||
sudo apt-get install jq | ||
git config --global user.email "opfabtech@gmail.com" | ||
git config --global user.name "OpfabTech" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright (c) 2022, RTE (http://www.rte-france.com) | ||
# See AUTHORS.txt | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# This file is part of the OperatorFabric project. | ||
|
||
|
||
# Script launch form the root of the git projet by github actions | ||
|
||
testFiles=$1 | ||
if [ -z $testFiles ] | ||
then | ||
testFiles="*" | ||
fi | ||
|
||
|
||
source $HOME/.sdkman/bin/sdkman-init.sh; | ||
export NVM_DIR="$HOME/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | ||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | ||
source ./bin/load_environment_light.sh; | ||
cd config/docker | ||
./docker-compose-cypress.sh | ||
cd ../../bin | ||
./waitForOpfabToStart.sh | ||
cd ../ | ||
# Set a more important timeout for CI/CD as it is usually slower than local computer | ||
export CYPRESS_defaultCommandTimeout=10000 | ||
./gradlew runSomeCypressTests -PspecFiles=$testFiles | ||
status_code=$? | ||
cd config/docker | ||
docker-compose down | ||
# propage the status code for github actions | ||
exit $status_code |
Oops, something went wrong.