Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gohabereg committed Jan 18, 2024
1 parent ce85ece commit bb19816
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
4 changes: 1 addition & 3 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,5 @@ runs:
uses: ./.github/actions/setup

- name: Build the package with dependencies
env:
STRYKER_DASHBOARD_API_KEY: ${{ inputs.stryker_dashboard_api_key }}
shell: bash
run: yarn workspaces foreach -Rpt --from '${{ inputs.package-name }}' run build
run: yarn workspaces foreach -Rpt --from '${{ inputs.package-name }}' run build
6 changes: 4 additions & 2 deletions .github/actions/mutation-tests-all-files/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ runs:
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc

- name: Setup environment
uses: ./.github/actions/setup

- name: Run mutation tests
env:
STRYKER_DASHBOARD_API_KEY: ${{ inputs.stryker_dashboard_api_key }}
shell: bash
id: run-mutation-tests
run: yarn workspace ${{ inputs.package-name }} test:mutations --dashboard.version main
run: yarn workspace ${{ inputs.package-name }} test:mutations --dashboard.version main
10 changes: 3 additions & 7 deletions .github/actions/mutation-tests-changed-files/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ runs:
path: ${{ inputs.working-directory }}

- name: Run mutation tests
env:
STRYKER_DASHBOARD_API_KEY: ${{ inputs.stryker_dashboard_api_key }}
if: steps.changed-files.outputs.src_any_changed == 'true'
shell: bash
id: run-mutation-tests
Expand All @@ -44,8 +46,6 @@ runs:

- name: Comment on successful mutation testing
uses: thollander/actions-comment-pull-request@v2
env:
STRYKER_DASHBOARD_API_KEY: ${{ inputs.stryker_dashboard_api_key }}
if: steps.changed-files.outputs.src_any_changed == 'true' && steps.run-mutation-tests.outcome == 'success' && ${{ steps.findPr.outputs.number != '' }}
with:
message: |
Expand All @@ -64,8 +64,6 @@ runs:

- name: Comment on failed mutation testing
uses: thollander/actions-comment-pull-request@v2
env:
STRYKER_DASHBOARD_API_KEY: ${{ inputs.stryker_dashboard_api_key }}
if: steps.changed-files.outputs.src_any_changed == 'true' && steps.run-mutation-tests.outcome == 'failure' && ${{ steps.findPr.outputs.number != '' }}
with:
message: |
Expand All @@ -84,8 +82,6 @@ runs:

- name: Comment on empty changes
uses: thollander/actions-comment-pull-request@v2
env:
STRYKER_DASHBOARD_API_KEY: ${{ inputs.stryker_dashboard_api_key }}
if: steps.changed-files.outputs.src_any_changed == 'false' && ${{ steps.findPr.outputs.number != '' }}
with:
message: |
Expand All @@ -96,4 +92,4 @@ runs:

- if: steps.changed-files.outputs.src_any_changed == 'true' && steps.run-mutation-tests.outcome == 'failure'
shell: bash
run: exit 1
run: exit 1

0 comments on commit bb19816

Please sign in to comment.