Skip to content

Commit 88325fd

Browse files
Merge pull request #1 from jacqueline-57b/add-workflow
test workflow
2 parents 643460f + 651fef5 commit 88325fd

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/run-e2e-test.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Run E2E Test
2+
3+
on:
4+
push:
5+
branches: [ "add-workflow" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
workflow_dispatch:
9+
inputs:
10+
nodeVersion:
11+
description: 'Node Version'
12+
required: true
13+
default: '[20.x]'
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
strategy:
20+
matrix:
21+
node-version: ${{ github.event.inputs.nodeVersion }}
22+
23+
steps:
24+
- name: Check Out Repository Code
25+
uses: actions/checkout@v4
26+
27+
- name: Use Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
32+
- name: Install Dependencies
33+
run: |
34+
npm install
35+
- name: 'Create env file'
36+
run: |
37+
touch .env
38+
echo WALLET_PRIVATE_KEY_A = ${{ secrets.WALLET_PRIVATE_KEY_A }} >> .env
39+
echo WALLET_PRIVATE_KEY_B = ${{ secrets.WALLET_PRIVATE_KEY_B }} >> .env
40+
echo WALLET_PRIVATE_KEY_C = ${{ secrets.WALLET_PRIVATE_KEY_C }} >> .env
41+
echo SEPOLIA_MINTING_FEE_TOKEN = ${{ secrets.SEPOLIA_MINTING_FEE_TOKEN }} >> .env
42+
echo SEPOLIA_RPC_PROVIDER_URL = ${{ vars.SEPOLIA_RPC_PROVIDER_URL }} >> .env
43+
echo SEPOLIA_NFT_CONTRACT_ADDRESS = ${{ vars.SEPOLIA_NFT_CONTRACT_ADDRESS }} >> .env
44+
echo SEPOLIA_LICENSING_MODULE_ADDRESS = ${{ vars.SEPOLIA_LICENSING_MODULE_ADDRESS }} >> .env
45+
echo SEPOLIA_ROYALTY_POLICY_LAP_ADDRESS = ${{ vars.SEPOLIA_ROYALTY_POLICY_LAP_ADDRESS }} >> .env
46+
cat .env
47+
48+
- name: Run E2E Test in Sepolia
49+
run: |
50+
npm run test:sepolia:smoke
51+
52+
- name: Upload Test Report
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: sdk-sepolia-test-report
56+
path: |
57+
./mochawesome-report

0 commit comments

Comments
 (0)