add test for applying enhancements in the TDS #533
Workflow file for this run
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
on: [pull_request] | |
jobs: | |
tds-tests: | |
name: TDS Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# test against latest 11, 14 of zulu and 11 of temurin java | |
java-version: [ 11 ] | |
java-vendor: [ 'zulu', 'temurin' ] | |
# test against tomcat 8.5.x and tomcat 9.x | |
servletcontainer: [ 'tomcat85', 'tomcat9' ] | |
include: | |
- java-version: 14 | |
java-vendor: 'zulu' | |
servletcontainer: 'tomcat85' | |
- java-version: 14 | |
java-vendor: 'zulu' | |
servletcontainer: 'tomcat9' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build and test with Gradle (${{ matrix.java-vendor }} ${{ matrix.java-version }}) | |
uses: Unidata/thredds-test-action@v2 | |
with: | |
java-vendor: ${{ matrix.java-vendor }} | |
java-version: ${{ matrix.java-version }} | |
build-tool: 'gradlew' | |
test-command: '-Dtds.content.root.path=$CONTENT_DIR -Dtds.test.gretty.container=${{ matrix.servletcontainer }} --info --stacktrace testAll' | |
env: | |
CONTENT_DIR: ${{ github.workspace }}/tds/src/test/content | |
- uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: tds_JUnit_Results_${{ github.sha }}_AdoptOpenJDK-HS-${{ matrix.java }}-matrix.servletcontainer }} | |
path: build/reports/allTests | |