Skip to content

e2e

e2e #563

Workflow file for this run

name: e2e
on:
workflow_dispatch:
workflow_call:
secrets:
E2E_HOST:
required: true
E2E_TOKEN:
required: true
NPM_TOKEN:
required: true
env:
NODE_VERSION: 20
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
e2e:
name: e2e test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Set yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: yarn-cache
with:
path: |
**/node_modules
**/.eslintcache
${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Init
run: make init
- name: Build
run: make build
- name: e2e test
run: |
sed -i -e "s|<HOST>|${{ secrets.E2E_HOST }}|" -e "s|<TOKEN>|${{ secrets.E2E_TOKEN }}|" ava-e2e.config.mjs
make e2e