Skip to content
Open
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
43 changes: 24 additions & 19 deletions .github/workflows/ci-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- '**'
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- '**'

permissions:
contents: read
Expand Down Expand Up @@ -74,29 +78,29 @@ jobs:
if: matrix.node-version == '20.x'
run: yarn nx run-many --target=test-unit-coverage --exclude='examples/**' --exclude='docs'

- name: ☂️ Codecov upload (only node-20)
if: matrix.node-version == '20.x'
working-directory: ${{ github.workspace }}
run: |
bash .github/scripts/install-codecov.sh
yarn g:ci-coverage-upload
shell: bash
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

#- name: ☂️ Codecov upload (only node-20)
# uses: codecov/codecov-action@v5
# if: matrix.node-version == '20.x'
# working-directory: ${{ github.workspace }}
# run: |
# bash .github/scripts/install-codecov.sh
# yarn g:ci-coverage-upload
# shell: bash
# with:
# fail_ci_if_error: true # optional (default = false)
# #files: ./coverage1.xml,./coverage2.xml # optional
# #flags: unittests # optional
# flags: httpx-exception-unit,httpx-dsn-parser-unit,httpx-memo-intl-unit,httpx-plain-object-unit,httpx-assert-unit,httpx-json-api-unit,httpx-treeu-unit
# #name: codecov-umbrella # optional
# verbose: true # optional (default = false)
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: ☂️ Codecov upload (only node-20)
uses: codecov/codecov-action@v4
if: matrix.node-version == '20.x'
with:
fail_ci_if_error: true # optional (default = false)
#files: ./coverage1.xml,./coverage2.xml # optional
#flags: unittests # optional
flags: httpx-exception-unit,httpx-dsn-parser-unit,httpx-memo-intl-unit,httpx-plain-object-unit,httpx-assert-unit,httpx-json-api-unit,httpx-treeu-unit
#name: codecov-umbrella # optional
verbose: true # optional (default = false)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: 🧪 Unit tests (edge-runtime)
if: matrix.node-version == '20.x'
run: yarn nx run-many --target=test-unit-edge --exclude='examples/**' --exclude='docs'
Expand All @@ -109,7 +113,8 @@ jobs:
if: matrix.node-version == '20.x'
run: yarn playwright install chrome

# @todo make this working
# @todo: Uncomment when the playwright install is working on CI
# > browserType.launch: Executable doesn't exist at /home/runner/.cache/ms-playwright/chromium-1140/chrome-linux/chrome
#- name: 🧪 Unit tests (playwright chrome - only node 20.x)
# if: matrix.node-version == '20.x'
# run: yarn nx run-many --target=test-unit-browser --exclude='examples/**' --exclude='docs'
Expand Down