Skip to content

feat: use fixed solana endpoint #10

feat: use fixed solana endpoint

feat: use fixed solana endpoint #10

Workflow file for this run

name: E2E
on:
push:
branches:
- main
pull_request:
env:
API_URL: http://localhost:3000/api
CLOAK_KEYCHAIN: 'v1.aesgcm256.6e1ba298.pf2UU5kKDxFWNgA6.VoV2c9xUARRchBZiY6iHlCc5'
CLOAK_MASTER_KEY: 'k1.aesgcm256.cs8BOCfbvuH-WwZDwqZ47zcLw0K8OlUGFW1JaXLAd78='
DATABASE_URL: postgresql://pubkey-program-sandbox:pubkey-program-sandbox@localhost:5432/pubkey-program-sandbox?schema=public
DATABASE_PROVISION: true
HOST: 127.0.0.1
JWT_SECRET: 1dfe5003518560c6362eab48f8220edf8708bbc67efbd4ed8cdf621965e938ee
PORT: 3000
SESSION_SECRET: 1dfe5003518560c6362eab48f8220edf8708bbc67efbd4ed8cdf621965e938ee
SOLANA_ENDPOINT: https://api.devnet.solana.com
SOLANA_FEE_PAYER_SECRET: '[152,222,146,61,189,252,198,154,44,101,236,177,170,27,231,52,185,128,234,101,214,247,206,97,166,183,126,170,165,179,147,21,211,103,95,129,144,43,47,17,229,174,40,46,25,82,14,6,95,118,169,245,129,172,149,69,220,91,111,240,248,63,102,37]'
jobs:
main-e2e:
runs-on: ubuntu-22.04
services:
postgres:
image: postgres:15-alpine
env:
POSTGRES_USER: pubkey-program-sandbox
POSTGRES_PASSWORD: pubkey-program-sandbox
POSTGRES_DB: pubkey-program-sandbox
ports: ['5432:5432']
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
redis:
image: redis:7-alpine
ports: ['6379:6379']
options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/checkout@v3
name: Checkout [main]
with:
fetch-depth: 0
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: pnpm install --frozen-lockfile --prefer-frozen-lockfile
- run: pnpm prisma generate
- run: pnpm prisma db push --skip-generate
- run: pnpm nx run-many --target=build --all --parallel --skip-nx-cache --verbose
- run: pnpm nx e2e api-e2e --skip-nx-cache --verbose