Skip to content
Closed
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
33 changes: 25 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,21 @@ jobs:
- name: Install dependencies
run: ut install --from pnpm

- name: Run tests
- name: Run tests with coverage
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '24' }}
run: ut run ci

- name: Run tests without coverage
if: ${{ matrix.os != 'ubuntu-latest' || matrix.node != '24' }}
run: ut run test

- name: Run example tests
if: ${{ matrix.os != 'windows-latest' }}
run: |
ut run example:test:all

- name: Code Coverage
# skip on windows, it will hangup on codecov
if: ${{ matrix.os != 'windows-latest' }}
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '24' }}
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
with:
use_oidc: true
Expand Down Expand Up @@ -206,14 +210,20 @@ jobs:
- name: Install dependencies
run: ut install --from pnpm

- name: Run tests
- name: Run tests with coverage
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
ut run build -- --workspace ./tools/egg-bin
ut run ci --workspace @eggjs/bin

- name: Run tests without coverage
if: ${{ matrix.os != 'ubuntu-latest' }}
run: |
ut run build -- --workspace ./tools/egg-bin
ut run test --workspace @eggjs/bin

- name: Code Coverage
# skip on windows, it will hangup on codecov https://github.com/codecov/codecov-action/issues/1787
if: ${{ matrix.os != 'windows-latest' }}
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
with:
use_oidc: true
Expand Down Expand Up @@ -247,13 +257,20 @@ jobs:
- name: Install dependencies
run: ut install --from pnpm

- name: Run tests
- name: Run tests with coverage
if: ${{ matrix.node == '24' }}
run: |
ut run build -- --workspace ./tools/scripts
ut run ci --workspace tools/scripts

- name: Run tests without coverage
if: ${{ matrix.node != '24' }}
run: |
ut run build -- --workspace ./tools/scripts
ut run test --workspace tools/scripts

- name: Code Coverage
if: ${{ matrix.os != 'windows-latest' }}
if: ${{ matrix.node == '24' }}
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
with:
use_oidc: true
Expand Down
Loading