diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 2db5b53..b7e3171 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -1,45 +1,45 @@ -name: Build & Test - -on: - push: - branches: ["master"] - pull_request: - branches: ["master"] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4.1.1 - - name: Setup .NET - uses: actions/setup-dotnet@v4.0.0 - with: - dotnet-version: 8.0.x - - - name: Restore - run: dotnet restore - - - name: Build - run: dotnet build --no-restore - - - name: Test with coverage - run: dotnet test --collect:"XPlat Code Coverage" - - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3.1.4 - with: - token: ${{ secrets.CODECOV_TOKEN }} - fail_ci_if_error: true - verbose: true - - # - name: Analyze with SonarCloud - # uses: SonarSource/sonarcloud-github-action@db501078e936e4b4c8773d1bb949ba9ddb7b6b6a - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - # with: - # args: - # -Dsonar.projectKey=BillChirico_GolfClapBot - # -Dsonar.organization=billchirico - +name: Build & Test + +on: + push: + branches: ["master"] + pull_request: + branches: ["master"] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4.1.1 + - name: Setup .NET + uses: actions/setup-dotnet@v4.0.0 + with: + dotnet-version: 8.0.x + + - name: Restore + run: dotnet restore + + - name: Build + run: dotnet build --no-restore + + - name: Test with coverage + run: dotnet test --collect:"XPlat Code Coverage" + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.1.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true + verbose: true + + # - name: Analyze with SonarCloud + # uses: SonarSource/sonarcloud-github-action@db501078e936e4b4c8773d1bb949ba9ddb7b6b6a + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + # with: + # args: + # -Dsonar.projectKey=BillChirico_GolfClapBot + # -Dsonar.organization=billchirico +