-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/integration testing workflow (#275)
* updates to allow integration tests to run in GitHub Actions on feature/task_cwms_support branch * disable CWMS for now
- Loading branch information
1 parent
f323684
commit a5fa202
Showing
10 changed files
with
183 additions
and
34 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,51 @@ | ||
name: CI/CD | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- feature/task_cwms_support | ||
pull_request: | ||
branches: | ||
- main | ||
- feature/task_cwms_support | ||
permissions: | ||
contents: write | ||
jobs: | ||
build: | ||
name: Build, Test, and Analyze | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 17 | ||
distribution: 'temurin' | ||
- name: Cache SonarCloud packages | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.sonar/cache | ||
key: ${{ runner.os }}-sonar | ||
restore-keys: ${{ runner.os }}-sonar | ||
- name: Setup Gradle | ||
uses: gradle/[email protected] | ||
with: | ||
dependency-graph: generate-and-submit | ||
- name: Build | ||
run: ./gradlew build | ||
- name: Integration Tests | ||
run: ./gradlew integrationTest --stacktrace --info | ||
- name: Analyze | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
run: ./gradlew sonar | ||
- name: Upload WAR files | ||
uses: actions/[email protected] | ||
with: | ||
name: warfile | ||
path: ./**/build/libs/*.war | ||
retention-days: 1 | ||
if-no-files-found: error |
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
pull_request: | ||
branches: | ||
- main | ||
- | ||
permissions: | ||
contents: write | ||
jobs: | ||
|
42 changes: 41 additions & 1 deletion
42
buildSrc/src/main/groovy/opendcs-rest-api.deps-conventions.gradle
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 |
---|---|---|
@@ -1,3 +1,43 @@ | ||
/* | ||
* Copyright 2024 OpenDCS Consortium and its Contributors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License") | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
repositories { | ||
mavenCentral() | ||
maven | ||
{ | ||
url "https://www.hec.usace.army.mil/nexus/repository/maven-public" | ||
content | ||
{ | ||
includeGroupByRegex "mil.army.usace.hec.*" | ||
includeGroupByRegex "org.jooq.pro" | ||
excludeGroup "com.oracle" | ||
} | ||
metadataSources | ||
{ | ||
mavenPom() | ||
artifact() | ||
} | ||
} | ||
mavenCentral() { | ||
content | ||
{ | ||
excludeGroupByRegex "mil.army.usace.hec.*" | ||
} | ||
metadataSources | ||
{ | ||
mavenPom() | ||
artifact() | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.