diff --git a/.github/workflows/ci-packages.yml b/.github/workflows/ci-packages.yml index f27f8dc64..dfa2a3c33 100644 --- a/.github/workflows/ci-packages.yml +++ b/.github/workflows/ci-packages.yml @@ -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 @@ -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' @@ -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'