Fix failing Cadence tests #265
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "$HOME/.local/bin" >> $GITHUB_PATH | |
- run: echo $HOME | |
- run: echo $GITHUB_PATH | |
- run: cat $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 |