Files
discordeno/.github/workflows/e2e-test.yml
T
FlenyandAwesome Stickz 580e5d3f56 ci: Use node v22 (#5167)
In package.json, the reason for >= 22.15 is that thats the node:zlib's zstd minimum version

Co-authored-by: Awesome Stickz <38146668+AwesomeStickz@users.noreply.github.com>
2026-07-22 19:43:22 +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@v7
with:
node-version: 22
cache: yarn
- run: yarn install --immutable
- name: Cache for Turbo
uses: rharkor/caching-for-turbo@v2.5.0
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 }}