Bump the opentelemetry group with 2 updates #283
Workflow file for this run
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: .NET Build and Test | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "*" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore -c Release | |
| - name: Remove unneeded directories before artifact upload | |
| run: | | |
| rm -rf ./**/runtimes/** | |
| rm -rf ./**/obj/** | |
| - name: Upload Build | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: build-output | |
| path: | | |
| . | |
| !./**/bin/**/runtimes/** | |
| architecture-tests: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| project: | |
| - Fylum.Core.Architecture.Tests | |
| - Fylum.Migrations.Api.Architecture.Tests | |
| - Fylum.Users.Api.Architecture.Tests | |
| - Fylum.Folders.Api.Architecture.Tests | |
| steps: | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| name: build-output | |
| path: . | |
| - name: Restore Permissions | |
| run: find . -type f -path "*/bin/*" -exec chmod +x {} + | |
| - name: Run Architecture Tests | |
| run: | | |
| dotnet test --project Test/${{ matrix.project }}/${{ matrix.project }}.csproj \ | |
| --no-build -c Release --verbosity normal | |
| unit-tests: | |
| needs: architecture-tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| project: | |
| - Fylum.Folders.Api.UnitTests | |
| steps: | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| name: build-output | |
| path: . | |
| - name: Restore Permissions | |
| run: find . -type f -path "*/bin/*" -exec chmod +x {} + | |
| - name: Run Unit Tests | |
| run: | | |
| dotnet test --project Test/${{ matrix.project }}/${{ matrix.project }}.csproj \ | |
| --no-build -c Release --verbosity normal | |
| e2e-tests: | |
| needs: unit-tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| project: | |
| - Fylum.Users.Api.EndToEnd.Tests | |
| - Fylum.Folders.Api.EndToEnd.Tests | |
| steps: | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| name: build-output | |
| path: . | |
| - name: Restore Aspire Components | |
| run: dotnet restore Test/${{ matrix.project }}/${{ matrix.project }}.csproj | |
| - name: Restore Permissions | |
| run: find . -type f -path "*/bin/*" -exec chmod +x {} + | |
| - name: Install and Trust Dotnet Dev Certificate | |
| run: | | |
| mkdir -p ${HOME}/.aspnet/https | |
| dotnet dev-certs https -ep ${HOME}/.aspnet/https/aspnetapp.crt --format PEM | |
| sudo cp ${HOME}/.aspnet/https/aspnetapp.crt /usr/local/share/ca-certificates/aspnetapp.crt | |
| sudo update-ca-certificates | |
| dotnet dev-certs https --check-trust-machine-readable | |
| - name: Run End To End Test | |
| run: | | |
| dotnet test --project Test/${{ matrix.project }}/${{ matrix.project }}.csproj \ | |
| --no-build -c Release --verbosity normal | |
| env: | |
| Parameters__MigrationPerformingKey: "AnyRandomMigrationPerformingKey" | |
| Parameters__JwtSigningKey: "Any sufficiently long enough key to sign the JWT Access Token with" |