diff --git a/.github/linters/.yamllint.yml b/.github/linters/.yamllint.yml index 1496177..c4767ec 100644 --- a/.github/linters/.yamllint.yml +++ b/.github/linters/.yamllint.yml @@ -3,6 +3,8 @@ # SPDX-License-Identifier: GPL-3.0-only --- +# yaml-language-server: $schema=https://json.schemastore.org/yamllint.json + extends: default rules: diff --git a/.github/workflows/build-installer.yml b/.github/workflows/build-installer.yml index 07dc4bb..65f20a5 100644 --- a/.github/workflows/build-installer.yml +++ b/.github/workflows/build-installer.yml @@ -13,7 +13,11 @@ on: pull_request: branches: [master] -permissions: read-all +permissions: + contents: read + issues: read + checks: write + pull-requests: write jobs: build: @@ -41,7 +45,14 @@ jobs: run: dotnet build --configuration Release --no-restore - name: Test - run: dotnet test --configuration Release --no-build --verbosity normal --collect:"XPlat Code Coverage" + run: dotnet test --configuration Release --no-build --verbosity normal --collect:"XPlat Code Coverage" --logger trx + + - name: Publish Test Results + uses: EnricoMi/publish-unit-test-result-action/composite@v2 + if: always() + with: + files: | + **/TestResults/*.trx - name: Codecov uses: codecov/codecov-action@v3 diff --git a/.github/workflows/mega-linter.yml b/.github/workflows/mega-linter.yml index 2dde388..1cf1a2f 100644 --- a/.github/workflows/mega-linter.yml +++ b/.github/workflows/mega-linter.yml @@ -58,7 +58,7 @@ jobs: # Upload MegaLinter artifacts - name: Archive production artifacts - if: ${{ success() }} || ${{ failure() }} + if: always() uses: actions/upload-artifact@v3 with: name: MegaLinter reports