fix: resolve race condition for scheduling #150
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: SatOps CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Start MinIO | |
| run: | | |
| docker run -d \ | |
| -p 9000:9000 \ | |
| -p 9001:9001 \ | |
| -e MINIO_ROOT_USER=minioadmin \ | |
| -e MINIO_ROOT_PASSWORD=minioadmin \ | |
| minio/minio:latest \ | |
| server /data --console-address ":9001" | |
| - name: Restore dependencies | |
| run: dotnet restore SatOps.sln | |
| - name: Build | |
| run: dotnet build SatOps.sln --configuration Release --no-restore | |
| - name: Test | |
| run: dotnet test SatOps.sln --configuration Release --no-build --verbosity normal | |
| env: | |
| MinIO__Endpoint: localhost:9000 | |
| MinIO__AccessKey: minioadmin | |
| MinIO__SecretKey: minioadmin | |
| MinIO__BucketName: satops-data | |
| MinIO__Secure: false |