Files
discordeno/.github/workflows/e2e-test.yml
T
dependabot[bot] bfec01a629 build(deps): bump actions/checkout from 6 to 7 (#5102)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  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: Awesome Stickz <38146668+AwesomeStickz@users.noreply.github.com>
2026-06-24 17:05:53 +05:30

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@v7
- 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.4.2
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@v7
if: ${{ inputs.event_name != 'pull_request' }}
with:
files: ./packages/${{ inputs.package }}/coverage/lcov.info
flags: ${{ inputs.package }}-e2e,${{ inputs.package }}
token: ${{ secrets.CODECOV_TOKEN }}