fix: correct autonomous Docker base image to existing tag #106
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: CI | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| env: | |
| SEMVER: 2.${{ github.run_number }}.0${{ github.event_name == 'pull_request' && format('-PR{0}', github.event.pull_request.number) || '' }} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 9.0.x | |
| 10.0.x | |
| cache: true | |
| cache-dependency-path: '**/*.csproj' | |
| - run: dotnet restore | |
| - name: Check code formatting | |
| run: dotnet format --verify-no-changes --verbosity diagnostic | |
| - run: dotnet build -c Release --no-restore /p:Version=${{ env.SEMVER }} | |
| - run: dotnet test ./HdrHistogram.UnitTests/HdrHistogram.UnitTests.csproj --no-build -c Release | |
| - run: dotnet pack ./HdrHistogram/HdrHistogram.csproj -c Release --no-build --include-symbols --no-restore /p:Version=${{ env.SEMVER }} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: nupkg | |
| path: HdrHistogram/bin/Release/*.nupkg |