This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
add message about new quickstart #26
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: KI E2E Testing Testnet | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
- gpavlov/update-github-actions-workflow | |
- gpavlov/setup-cypress | |
jobs: | |
cypress-e2e-testnet-ubuntu: | |
name: Cypress Testnet Tests on Ubuntu | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
container: cypress/browsers:node16.14.2-slim-chrome103-ff102 #use arm64 arch on Apple M1 chips when running locally | |
env: | |
ADMIN_ADDRESS: ${{secrets.ADMIN_ADDRESS_E2E}} | |
FLOW_PRIVATE_KEY: ${{secrets.FLOW_PRIVATE_KEY_E2E}} | |
FLOW_PUBLIC_KEY: ${{secrets.FLOW_PUBLIC_KEY_E2E}} | |
E2E_GITHUB_ACTIONS_JOB: cypress-e2e-testnet | |
steps: | |
- name: Install build dependencies (mostly for sqlite on ARM) | |
run: apt-get update -y && apt-get install build-essential -y | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Flow CLI | |
run: | | |
sh -ci "$(curl -fsSL https://storage.googleapis.com/flow-cli/install.sh)" && | |
echo "/root/.local/bin:/github/home/.local/bin" >> $GITHUB_PATH | |
echo $HOME && | |
ls -l $HOME/.local/bin && | |
chmod a+r $HOME/.local/bin/flow && | |
ls -l $HOME/.local/bin && | |
$HOME/.local/bin/flow version | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: chmod subdirs to bypass lerna exec access permission issues | |
run: | | |
pwd && | |
ls -l && | |
chmod -R 777 api && | |
chmod -R 777 web && | |
chmod -R 777 cadence/tests && | |
ls -l | |
- name: Cypress run testnet | |
uses: cypress-io/github-action@v4 | |
with: | |
start: npm run dev:testnet | |
wait-on: http://localhost:3001 | |
spec: cypress/e2e/testnet.cy.js | |
record: true | |
browser: chrome | |
env: | |
CYPRESS_RECORD_KEY: ${{secrets.CYPRESS_RECORD_KEY}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots | |
# Test run video was always captured, so this action uses "always()" condition | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: cypress-videos | |
path: cypress/videos |