Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
stenjo committed Oct 9, 2024
1 parent ec8cf37 commit 6a0b302
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/stryker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,39 +31,39 @@ jobs:

- name: Install dependencies
run: npm install

- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.GIST_APP_ID }}
private-key: ${{ secrets.GIST_APP_KEY }}
owner: ${{ github.repository_owner }}

- name: Run StrykerJS
- name: Run StrykerJS
continue-on-error: true
id: stryker
run: |
npm run stryker > out
- name: Print output
- name: Print output
continue-on-error: true
run: cat out

- name: Save stryker JS log
- name: Save stryker JS log
if: failure()
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: stryker.log
path: stryker.log

- name: Extract stryker score
- name: Extract stryker score
run: |
grep "All files" out > line
awk '{print $4}' line > fullscore
awk '{split($0,a,"."); print a[1]}' fullscore > score
echo "stryker-score=$(tr -s '\n' < score)" >> "$GITHUB_ENV"
- name: Create the Badge for Deploy Rate
uses: Schneegans/dynamic-badges-action@v1.7.0
with:
Expand Down

0 comments on commit 6a0b302

Please sign in to comment.