Skip to content

Commit

Permalink
Update dependencies (#36)
Browse files Browse the repository at this point in the history
* Update dependencies

Also
- Fix so we can run workflow manually to check if there are regressions
- Make sure workflow also works for PRs from other forks
  • Loading branch information
erikbosch authored Jul 12, 2024
1 parent 25814b1 commit d051cba
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 25 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ on:
branches: ['main']
pull_request:
branches: ['main']
workflow_dispatch:


jobs:
lint-job:
name: "Run linters"
Expand All @@ -28,11 +31,11 @@ jobs:
uses: actions/checkout@v4

- name: Run Linters
uses: pre-commit/[email protected].0
uses: pre-commit/[email protected].1

build:
runs-on: ubuntu-latest
name: Run unit tests and publish package on main
name: Run unit tests and report coverage
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -45,10 +48,14 @@ jobs:
- run: npm run build
- run: npm run coverage

- uses: 5monkeys/cobertura-action@v13
- uses: irongut/[email protected]
with:
path: coverage/cobertura-coverage.xml
minimum_coverage: 80
show_line: true
show_branch: true
fail_below_threshold: false
filename: coverage/cobertura-coverage.xml
badge: true
format: markdown
hide_complexity: true
indicators: true
output: both

- run: |
cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY
60 changes: 44 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"typescript": "^4.8.3"
},
"dependencies": {
"axios": "^0.27.2",
"axios": "^0.28.1",
"buffer": "^6.0.3",
"http-status-codes": "^2.3.0"
}
Expand Down

0 comments on commit d051cba

Please sign in to comment.