Merge pull request #13 from StuartF303/claude/camper-van-control-setu… #59
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: Build and Test | |
| on: | |
| push: | |
| branches: [ main, develop, claude/* ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore VanDaemon.sln | |
| - name: Build | |
| run: dotnet build VanDaemon.sln --configuration Release --no-restore | |
| - name: Test | |
| run: dotnet test VanDaemon.sln --configuration Release --no-build --verbosity normal --collect:"XPlat Code Coverage" | |
| - name: Upload coverage reports | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| files: '**/coverage.cobertura.xml' | |
| fail_ci_if_error: false | |
| docker-build: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Build API Docker image | |
| run: docker build -f docker/Dockerfile.api -t vandaemon-api:latest . | |
| - name: Build Web Docker image | |
| run: docker build -f docker/Dockerfile.web -t vandaemon-web:latest . | |
| - name: Test Docker Compose | |
| run: | | |
| cd docker | |
| docker compose config |