Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ updates:
- "dependencies"
- "npm"
rebase-strategy: "auto"
ignore:
- dependency-name: "*"
update-types:
- "version-update:semver-major"

- package-ecosystem: "github-actions"
directory: "/"
Expand Down
27 changes: 12 additions & 15 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ on:
env:
retention_days: 3

permissions:
checks: write
contents: read
pull-requests: write
security-events: write # required for SARIF upload
actions: read

jobs:
tests:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -103,34 +110,24 @@ jobs:
retention-days: ${{ env.retention_days }}
# displays in summary page
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
with:
report_paths: 'junit.xml'
# more in depth junit in console and annotations on failures
- uses: ashley-taylor/junit-report-annotations-action@1.3
if: always()
uses: EnricoMi/publish-unit-test-result-action@v2
with:
access-token: ${{ secrets.GITHUB_TOKEN }}
path: junit.xml
files: junit.xml
check_name: Test Results
- run: npm run test:coverage
- name: upload code coverage
uses: actions/upload-artifact@v4
with:
name: Report-CodeCoverage
path: coverage
retention-days: ${{ env.retention_days }}
# adds coverage comment to pr
- name: parse coverage
uses: danhunsaker/clover-reporter-action@v0.2.17-clover
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
clover-file: ./coverage/clover.xml


automerge:
needs: tests
name: Auto-merge PR if tests pass
if: (github.actor == 'dependabot[bot]' || github.actor == 'imgbot[bot]') && needs.tests.result == 'success'
if: (github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'imgbot[bot]') && needs.tests.result == 'success'
runs-on: ubuntu-latest
steps:
- name: Merge PR
Expand Down