remove utils project #596
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: | |
| workflow_dispatch: | |
| push: | |
| branches: [ master ] | |
| env: | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
| DOTNET_CLI_TELEMETRY_OPTOUT: true | |
| GITHUB_ACTIONS: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: ${{ github.head_ref || github.ref_name }} | |
| cancel-in-progress: true | |
| steps: | |
| - name: Checkout Branch | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET Core | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| global-json-file: global.json | |
| - name: Tool Restore | |
| run: dotnet tool restore | |
| - name: Build | |
| run: dotnet nuke build | |
| - name: Lint | |
| run: dotnet nuke lint | |
| - name: Tests | |
| run: dotnet nuke test --configuration Release --skip build --no-logo | |
| - name: Test Result | |
| if: ${{ github.actor != 'dependabot[bot]' && (success() || failure()) }} | |
| uses: dorny/test-reporter@v1.5.0 | |
| with: | |
| name: Test Report | |
| reporter: dotnet-trx | |
| path: tests/**/test_result.xml | |
| - name: Generate Coverage Html Report | |
| if: ${{ github.actor != 'dependabot[bot]' }} | |
| run: dotnet nuke generate-report --no-logo | |
| - name: Create CheckRun for code Coverage | |
| uses: LouisBrunner/checks-action@v1.2.0 | |
| if: ${{ github.actor != 'dependabot[bot]' }} | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| name: Coverage Report Summary | |
| conclusion: ${{ job.status }} | |
| output_text_description_file: TestReport/Summary.md | |
| output: '{"summary":"Created by Report-Generator"}' | |
| - name: Generate Badges | |
| run: dotnet nuke generate-badges --no-logo | |
| - name: Build Docs | |
| run: dotnet nuke build-docs --skip restore --no-logo | |
| - name: Publish Docs | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./docfx/_site | |
| publish_branch: site | |
| force_orphan: true |