-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Add CI for Docker Dev Environment
- Loading branch information
1 parent
2208536
commit 2d2821d
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
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
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 |
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