diff --git a/.github/workflows/manual-test.yml b/.github/workflows/manual-test.yml new file mode 100644 index 000000000..b77df4165 --- /dev/null +++ b/.github/workflows/manual-test.yml @@ -0,0 +1,54 @@ +name: Manual Junit test the project + +on: + workflow_dispatch: + inputs: + branch: + description: 'Opencga branch to run the tests' + default: 'develop' + required: true + fail-never: + type: boolean + description: 'The process executes all tests even if some fail.' + default: false + required: false + +jobs: + test: + name: JUnit Test + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.inputs.branch }} + fetch-depth: '0' + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '11' + cache: 'maven' + - name: K8s Tunnel MongoDB + run: | + wget https://dl.k8s.io/release/v1.28.2/bin/linux/amd64/kubectl + chmod +x ./kubectl + echo "${{ secrets.AZURE_KUBE_CONFIG }}" > admin.conf + ./kubectl -n cellbase-db port-forward services/cellbase-rs0-svc 27017:27017 --kubeconfig ./admin.conf & + - name: Install dependencies branches + run: | + if [ -f "./.github/workflows/scripts/get_same_branch.sh" ]; then + chmod +x ./.github/workflows/scripts/get_same_branch.sh + ./.github/workflows/scripts/get_same_branch.sh ${{ github.ref_name }} + else + echo "./.github/workflows/scripts/get_same_branch.sh does not exist." + fi + - name: Test and Analyze + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + run: | + FAIL_NEVER="" + if [ "${{ github.event.inputs.fail-never }}" == "true" ]; then + FAIL_NEVER="--fail-never" + fi + mvn install surefire-report:report ${FAIL_NEVER} -Dcheckstyle.skip \ No newline at end of file diff --git a/cellbase-app/pom.xml b/cellbase-app/pom.xml index d7b8c8a47..98f2b62ac 100644 --- a/cellbase-app/pom.xml +++ b/cellbase-app/pom.xml @@ -6,7 +6,7 @@ org.opencb.cellbase cellbase - 6.0.0 + 6.1.0 ../pom.xml diff --git a/cellbase-client/pom.xml b/cellbase-client/pom.xml index 566e1b40e..5309364ef 100644 --- a/cellbase-client/pom.xml +++ b/cellbase-client/pom.xml @@ -6,7 +6,7 @@ org.opencb.cellbase cellbase - 6.0.0 + 6.1.0 ../pom.xml diff --git a/cellbase-core/pom.xml b/cellbase-core/pom.xml index b628de3b2..df3600043 100644 --- a/cellbase-core/pom.xml +++ b/cellbase-core/pom.xml @@ -6,7 +6,7 @@ org.opencb.cellbase cellbase - 6.0.0 + 6.1.0 ../pom.xml diff --git a/cellbase-lib/pom.xml b/cellbase-lib/pom.xml index b1b13d74c..856d8c7d4 100644 --- a/cellbase-lib/pom.xml +++ b/cellbase-lib/pom.xml @@ -6,7 +6,7 @@ org.opencb.cellbase cellbase - 6.0.0 + 6.1.0 ../pom.xml diff --git a/cellbase-server/pom.xml b/cellbase-server/pom.xml index d5e995998..c2cfdd997 100644 --- a/cellbase-server/pom.xml +++ b/cellbase-server/pom.xml @@ -6,7 +6,7 @@ org.opencb.cellbase cellbase - 6.0.0 + 6.1.0 ../pom.xml diff --git a/pom.xml b/pom.xml index 0bd4fb007..c6712628c 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.opencb.cellbase cellbase - 6.0.0 + 6.1.0 pom CellBase project @@ -23,8 +23,8 @@ ${project.version} - 5.0.0 - 3.0.0 + 5.1.0 + 3.1.0 0.1.0 2.11.4 1.9.13