Refactor DAV client, add missing operations #17
This file contains hidden or 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: DAV Integration Tests | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - ".github/workflows/dav-integration.yml" | |
| - "dav/**" | |
| - "go.mod" | |
| - "go.sum" | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: dav-integration | |
| cancel-in-progress: false | |
| jobs: | |
| dav-integration: | |
| name: DAV Integration Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Install Ginkgo | |
| run: go install github.com/onsi/ginkgo/v2/ginkgo@latest | |
| - name: Setup WebDAV test server | |
| run: ./.github/scripts/dav/setup.sh | |
| - name: Run Integration Tests | |
| env: | |
| DAV_ENDPOINT: "https://localhost:8443" | |
| DAV_USER: "testuser" | |
| DAV_PASSWORD: "testpass" | |
| DAV_SECRET: "test-secret-key" | |
| DAV_CA_CERT_FILE: "dav/integration/testdata/certs/server.crt" | |
| run: | | |
| export DAV_CA_CERT="$(cat ${DAV_CA_CERT_FILE})" | |
| ./.github/scripts/dav/run-int.sh | |