diff --git a/.github/workflows/ci-docker-dev.yml b/.github/workflows/ci-docker-dev.yml new file mode 100644 index 0000000..cdd531d --- /dev/null +++ b/.github/workflows/ci-docker-dev.yml @@ -0,0 +1,33 @@ +name: CI +on: [push, pull_request] +jobs: + build: + name: Build and Test Docker Dev Environment (${{ matrix.os }} / JDK ${{ matrix.jdk }} / eXist-db ${{ matrix.exist-version }}) + strategy: + fail-fast: true + matrix: + jdk: ['8'] + exist-version: ['6.1.0-SNAPSHOT'] + os: [ubuntu-latest, macOS-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - name: Set up JDK ${{ matrix.jdk }} + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: ${{ matrix.jdk }} + - name: Cache Maven packages + uses: actions/cache@v3 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-${{ matrix.exist-version }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-${{ matrix.exist-version }}-maven + - name: Maven Build + run: mvn -V clean package + - name: Start Docker Dev Environment + run: mvn -Pdev -Dexist.version=${{ matrix.exist-version }} docker:start + - name: Query Docker Dev Environment + run: curl -vv "http://localhost:9090/exist/rest/db/?_query=system:get-version()" + - name: Stop Docker Dev Environment + run: mvn -Pdev -Dexist.version=${{ matrix.exist-version }} docker:stop diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 934a293..cb173c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: CI on: [push, pull_request] jobs: build: - name: Build and Test (${{ matrix.os }} / JDK ${{ matrix.jdk }} / eXist-db ${{ matrix.exist-version }}) + name: Build and Test Semver.xq (${{ matrix.os }} / JDK ${{ matrix.jdk }} / eXist-db ${{ matrix.exist-version }}) strategy: fail-fast: true matrix: