Skip to content

Commit

Permalink
[ci] Add CI for Docker Dev Environment
Browse files Browse the repository at this point in the history
  • Loading branch information
adamretter committed Dec 29, 2022
1 parent 2208536 commit 2d2821d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/ci-docker-dev.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2d2821d

Please sign in to comment.