Run CITE tests for ogcapi-features 1.0 #3
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
name: Run CITE Tests | |
on: | |
push: | |
# branches: | |
# - main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-war: | |
runs-on: ubuntu-latest | |
name: Build GeoServer WAR | |
steps: | |
- name: Checkout repository (shallow clone) | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Set up Maven | |
uses: stCarolas/setup-maven@v5 | |
with: | |
maven-version: 3.9.8 | |
- name: Maven repository caching | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: gs-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
gs-${{ runner.os }}-maven- | |
- name: Build geoserver.war | |
working-directory: build/cite | |
run: make war | |
- name: Upload geoserver.war as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: geoserver-war | |
path: build/cite/geoserver/geoserver.war | |
run-cite-tests: | |
needs: build-war | |
runs-on: ubuntu-latest | |
name: Run CITE Tests | |
strategy: | |
matrix: | |
#suite: [ogcapi-features10, wcs10, wcs11, wms10, wms11, wms13, wfs10, wfs11] | |
suite: [ogcapi-features10] | |
steps: | |
- name: Checkout repository (shallow clone) | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Download geoserver.war artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: geoserver-war | |
path: build/cite/geoserver/ | |
- name: List geoserver.war contents | |
run: unzip -l build/cite/geoserver/geoserver.war | |
- name: Build ogccite/geoserver:${{ matrix.suite }} docker image | |
working-directory: build/cite | |
run: make build suite=${{ matrix.suite }} | |
- name: Run CITE tests for ogccite/geoserver:${{ matrix.suite }} | |
working-directory: build/cite | |
run: make test suite=${{ matrix.suite }} | |
- name: Shutdown containers | |
working-directory: build/cite | |
run: make clean | |
- name: Upload logs folder | |
uses: actions/upload-artifact@v3 | |
with: | |
name: cite-${{ matrix.suite }}-logs | |
path: logs/ |