Files
discordeno/.github/workflows/e2e-test.yml
dependabot[bot] 382cc3b213 build(deps): bump codecov/codecov-action from 5 to 6 (#4897)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5 to 6.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <Fleny113@outlook.com>
2026-04-02 10:32:56 +02:00

44 lines
1.3 KiB
YAML

name: E2E Test
permissions:
contents: read
on:
workflow_call:
inputs:
package:
required: true
type: string
event_name:
required: true
type: string
jobs:
e2e-test:
name: E2E Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 20
cache: yarn
- run: yarn install --immutable
- name: Cache for Turbo
uses: rharkor/caching-for-turbo@v2.3.11
with:
cache-prefix: turbo-cache-
- name: E2E Test
if: ${{ inputs.event_name != 'pull_request' }}
run: yarn test:e2e --filter=./packages/${{ inputs.package }}
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
E2E_TEST_GUILD_ID: ${{ secrets.UNIT_TEST_GUILD_ID }}
PROXY_REST_SECRET: ${{ secrets.PROXY_REST_SECRET }}
PROXY_REST_URL: ${{ secrets.PROXY_REST_URL }}
- name: Collect and upload the coverage report
uses: codecov/codecov-action@v6
if: ${{ inputs.event_name != 'pull_request' }}
with:
files: ./packages/${{ inputs.package }}/coverage/lcov.info
flags: ${{ inputs.package }}-e2e,${{ inputs.package }}
token: ${{ secrets.CODECOV_TOKEN }}