Skip to content

Commit

Permalink
Unify workflow triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrzajac committed Oct 16, 2023
1 parent 65404ef commit dce52d2
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 22 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/fossa-scan.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: fossa-scan
name: Check license compliance and security issues FOSSA

on:
push:
Expand All @@ -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:
Expand Down
24 changes: 13 additions & 11 deletions .github/workflows/test-mutations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}

File renamed without changes.

0 comments on commit dce52d2

Please sign in to comment.