Skip to content

Commit

Permalink
ci: Streamline coverage workflow and re-enable IRL tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuki31 committed Aug 27, 2024
1 parent f2d68ec commit f0b51fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ jobs:
- name: Clean install the project
run: npm ci
- name: Run coverage
# Currently only run coverage for unit tests
run: npx nyc npm run test:unit
run: npm run coverage
- name: Upload coverage
if: ${{ github.actor != 'dependabot[bot]' || github.actor != 'github-actions[bot]' }}
uses: codecov/codecov-action@v4
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/irltest.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
name: IRL Test

on:
## Due to YouTube bot detection when downloading YouTube videos,
## this workflow will not be triggered automatically until we address it.
## Still if we run manually, it will returns an error.
# pull_request:
# branches: [ "master" ]
# schedule:
# - cron: '0 6,12,18,0 * * *'
pull_request:
branches: [ "master" ]
schedule:
- cron: '0 6,12,18,0 * * *'
workflow_dispatch:
inputs:
traceDeprecation:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Unit Test

on:
push:
paths: [ "**/test/**/*" ]
paths: [ "test/unittest/**/*" ]
pull_request:
branches: [ "master" ]

Expand Down

0 comments on commit f0b51fd

Please sign in to comment.