diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index e3c1fd2e..d6405c9a 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -26,12 +26,17 @@ on: push: branches: - "master" # Run the workflow when pushing to the master branch + paths: + - 'src/**' + - 'GitVersion.yml' + - '.github/workflows/cicd.yml' + - '.github/actions/materialize-signing-key/**' pull_request: - branches: - - "*" # Run the workflow for all pull requests - paths-ignore: - - "**.md" - - "**.png" + paths: + - 'src/**' + - 'GitVersion.yml' + - '.github/workflows/cicd.yml' + - '.github/actions/materialize-signing-key/**' types: [opened, synchronize, reopened] env: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 90b824c9..3e617216 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -2,10 +2,16 @@ name: "CodeQL" on: push: - branches: [ "master" ] + branches: + - "master" + paths: + - 'src/**' + - '.github/workflows/codeql.yml' pull_request: - # The branches below must be a subset of the branches above - branches: [ "master" ] + paths: + - 'src/**' + - '.github/workflows/codeql.yml' + types: [opened, synchronize, reopened] schedule: - cron: '20 23 * * 0' diff --git a/.github/workflows/fossa-scan.yml b/.github/workflows/fossa-scan.yml index e7dc9f27..80126aa6 100644 --- a/.github/workflows/fossa-scan.yml +++ b/.github/workflows/fossa-scan.yml @@ -1,4 +1,4 @@ -name: fossa-scan +name: Check license compliance and security issues FOSSA on: push: @@ -8,11 +8,10 @@ on: - 'src/**' - '.github/workflows/fossa-scan.yml' pull_request: - branches: - - "*" # Run the workflow for all pull requests paths: - 'src/**' - '.github/workflows/fossa-scan.yml' + types: [opened, synchronize, reopened] jobs: fossa-scan: diff --git a/.github/workflows/test-mutations.yml b/.github/workflows/test-mutations.yml index cd216d89..ec6c8ae5 100644 --- a/.github/workflows/test-mutations.yml +++ b/.github/workflows/test-mutations.yml @@ -4,16 +4,19 @@ on: workflow_dispatch: push: branches: - - "master" # Run the workflow when pushing to the master branch - paths-ignore: - - "**.md" - - "**.png" + - "master" + paths: + - 'src/**' + - 'stryker-config.yml' + - '.github/workflows/test-mutations.yml' + - '.github/actions/materialize-signing-key/**' pull_request: - branches: - - "*" # Run the workflow for all pull requests - paths-ignore: - - "**.md" - - "**.png" + paths: + - 'src/**' + - 'stryker-config.yml' + - '.github/workflows/test-mutations.yml' + - '.github/actions/materialize-signing-key/**' + types: [opened, synchronize, reopened] env: DOTNET_NOLOGO: true @@ -44,9 +47,8 @@ jobs: - name: 👾 test mutations working-directory: ./src run: | - dotnet tool run dotnet-stryker -f stryker-config.yaml -r dashboard -v ${{ github.ref_name }} --dashboard-api-key ${{ secrets.STRYKER_API_KEY }} + dotnet tool run dotnet-stryker -f ../stryker-config.yml -r dashboard -v ${{ github.ref_name }} --dashboard-api-key ${{ secrets.STRYKER_API_KEY }} env: CI: true StrongNameKey: ${{ secrets.SIGNING_KEY }} StrongNameKeyPath: ${{ steps.signing-key.outputs.file-path }} - diff --git a/src/stryker-config.yaml b/stryker-config.yml similarity index 100% rename from src/stryker-config.yaml rename to stryker-config.yml