1.0 KiB
1.0 KiB
Local Testing Guide
This document explains how to run e2e tests locally using act.
Prerequisites
- Docker installed and running
- act installed (install guide)
brew install act # macOS - 1Password credentials (see Required Secrets)
- Build action
Required env variables
| Secret | Description |
|---|---|
OP_SERVICE_ACCOUNT_TOKEN |
Service Account token |
VAULT |
Vault name or UUID |
Building Before Testing
If you've modified TypeScript code, rebuild before running E2E tests:
npm run build
Testing
Run E2E tests using Service Account
act push -W .github/workflows/e2e-tests.yml \
-s OP_SERVICE_ACCOUNT_TOKEN="$OP_SERVICE_ACCOUNT_TOKEN" \
-s VAULT="$VAULT" \
-j test-service-account \
--matrix os:ubuntu-latest
Run unit tests
npm test