-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (42 loc) · 1.18 KB
/
e2e-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: E2E tests
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
inputs:
network:
default: mainnet
type: choice
description: network to use
options:
- mainnet
- preprod
run-name: "E2E Test | network: ${{ github.event.inputs.network }} | #${{ github.run_number }}"
jobs:
build:
runs-on: ubuntu-latest
env:
BLOCKFROST_PROJECT_ID: ${{
github.event.inputs.network == 'mainnet' && secrets.BLOCKFROST_MAINNET_PROJECT_ID ||
github.event.inputs.network == 'preprod' && secrets.BLOCKFROST_PREPROD_PROJECT_ID ||
'preprod1abiUKhLuQ3Ic1n6ctxilFMtlGNozC5h'
}}
BLOCKFROST_NETWORK: ${{ github.event.inputs.network || 'preprod' }}
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn run build
- name: Start service
run: |
yarn start &
npx wait-on http://localhost:3005
- run: yarn run test:e2e