Files
load-secrets-action/docs/local-testing.md
Volodymyr Zotov 2c0496a719 Add testing docs
2025-12-15 08:42:58 -06:00

1.0 KiB

Local Testing Guide

This document explains how to run e2e tests locally using act.

Prerequisites

  1. Docker installed and running
  2. act installed (install guide)
    brew install act  # macOS
    
  3. 1Password credentials (see Required Secrets)
  4. 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