Initial Docker compose setup for testing different WebDAV servers #50
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: build | |
on: [pull_request, push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Build | |
run: ./gradlew build | |
test: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Install & Start Docker | |
run: | | |
brew install docker colima | |
colima start | |
- name: Start WebDAV servers | |
run: | | |
docker compose up -d | |
- name: Test WebDAV Server | |
run: | | |
curl -u test:test -X PROPFIND http://localhost:8001 | |
- name: Tests | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: 29 | |
profile: pixel_3a | |
script: ./gradlew connectedCheck |