-
Notifications
You must be signed in to change notification settings - Fork 13
46 lines (36 loc) · 1.38 KB
/
test.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: NFT Catalog Integration Tests
on: pull_request
jobs:
tests:
env:
CATALOG_TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.CATALOG_TESTNET_ACCOUNT_PRIVATE_KEY }}
EXAMPLENFT_TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.EXAMPLENFT_TESTNET_ACCOUNT_PRIVATE_KEY }}
EXAMPLENFT_TESTNET_HOLDER_ACCOUNT_PRIVATE_KEY: ${{ secrets.EXAMPLENFT_TESTNET_HOLDER_ACCOUNT_PRIVATE_KEY }}
EMULATOR_ACCOUNT_PRIVATE_KEY: ${{ secrets.EMULATOR_ACCOUNT_PRIVATE_KEY }}
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 18
# This should be switched to the regular CLI once the stable-cadence branch is merged
- name: Install Cadence 1.0 Flow CLI
run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)"
- name: Update PATH
run: echo "/root/.local/bin" >> $GITHUB_PATH
- run: echo $(flow version)
- name: Install Dependencies
run: npm install
- name: Install UI Dependencies
run: npm run install-ui
- name: Run Cadence javascript Tests
if: always()
run: npm test
- name: Run Cadence Tests
if: always()
run: sh run-test.sh
# - name: Run E2E Cypress Tests
# if: always()
# run: npm run e2e