Skip to content

Update tomcat.

Update tomcat. #3903

Workflow file for this run

---
name: Build And Test CWMS Data API
on:
push:
branches:
- prod
pull_request:
branches:
- prod
jobs:
build:
strategy:
fail-fast: false
matrix:
jdk: [8, 11]
name: build and test
runs-on: ubuntu-latest
outputs:
thewar: ${{steps.thebuild.outputs.WARFILE}}
steps:
- name: checkout code
uses: actions/checkout@v4.2.2
- name: setup java
uses: actions/setup-java@v4.7.1
with:
distribution: 'temurin'
java-version: ${{matrix.jdk}}
cache: 'gradle'
- name: build and test
id: thebuild
run: ./gradlew build --info --init-script init.gradle
- name: integration tests
run: ./gradlew integrationtest --info --init-script init.gradle
- name: Publish Test Report
uses: mikepenz/action-junit-report@v5
if: success() || failure() # always run even if the previous step fails
with:
annotate_only: true
include_passed: true
report_paths: '**/TEST-*.xml'
build-docker-image:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4.2.2
- name: Build docker image
run: docker build -t cda:build-latest .
build-schema-migration-image:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4.2.2
- name: Build Migration image
uses: ./.github/actions/database-migration-image
with:
base-image: ghcr.io/hydrologicengineeringcenter/cwms-database/cwms/schema_installer
# TODO get current target image from build information
tag: latest
# No uploads, we're just verifying that nothing broke the docker image.