From 3373b815516ca0aab2b5434103a1321cb06e3acb Mon Sep 17 00:00:00 2001 From: LuizAsFight Date: Mon, 17 Jun 2024 18:33:14 -0300 Subject: [PATCH] chore: name of tests --- .github/workflows/pr-tests.yml | 2 +- .github/workflows/tests-devnet.yaml | 121 ++++++++------------------- .github/workflows/tests-testnet.yaml | 4 +- 3 files changed, 38 insertions(+), 89 deletions(-) diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 5758a61eb4..9c1e2bad8a 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -115,7 +115,7 @@ jobs: runs-on: buildjet-4vcpu-ubuntu-2204 steps: - uses: actions/checkout@v3 - - name: Run E2E Contract Tests + - name: Run E2E Contract Tests - Local uses: ./.github/actions/e2e-tests-contracts with: ghToken: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/tests-devnet.yaml b/.github/workflows/tests-devnet.yaml index c364eb5850..af323f0c32 100644 --- a/.github/workflows/tests-devnet.yaml +++ b/.github/workflows/tests-devnet.yaml @@ -1,86 +1,35 @@ -# name: Devnet tests - -# on: -# workflow_dispatch: -# inputs: -# providerUrl: -# description: Provider URL (e.g. https://devnet.fuel.network/v1/graphql) -# required: false -# masterMnemonic: -# description: Mnemonic of the wallet that will fund the tests -# required: false -# push: -# branches: -# - main -# pull_request: -# branches: [main, master, sdk-v2] -# types: [opened, synchronize, reopened] - -# concurrency: -# group: ${{ github.workflow }}-${{ github.ref }} -# cancel-in-progress: true - -# jobs: -# tests-e2e-contracts: -# name: E2E Contract Tests -# runs-on: buildjet-4vcpu-ubuntu-2204 -# steps: -# - uses: actions/checkout@v3 -# - uses: FuelLabs/github-actions/setups/node@master -# with: -# node-version: 18.18.0 -# pnpm-version: 8.15.7 -# - uses: FuelLabs/github-actions/setups/docker@master -# with: -# username: ${{ github.repository_owner }} -# password: ${{ secrets.GITHUB_TOKEN }} - -# - name: Run PNPM install -# id: pnpm-cache -# run: -# pnpm recursive install --frozen-lockfile - -# - name: Start Test Node -# run: pnpm node:up - -# - name: Generate .env app -# run: cp packages/app/.env.example.testnet packages/app/.env - -# - name: Generate .env e2e-contracts -# run: cp packages/e2e-contract-tests/.env.example.testnet packages/e2e-contract-tests/.env - -# - name: Build Application -# run: pnpm build:all -# env: -# ## increase node.js m memory limit for building -# ## with sourcemaps -# NODE_OPTIONS: "--max-old-space-size=4096" -# NODE_ENV: test - -# - name: Build & Deploy Contracts -# run: pnpm deploy:contracts -# working-directory: ./packages/e2e-contract-tests - -# # E2E tests running with Playwright -# - name: Install Playwright Browsers -# run: npx playwright install --with-deps chromium - -# - name: Run E2E Contract Tests -# run: xvfb-run --auto-servernum -- pnpm test:e2e:contracts -# env: -# NODE_ENV: test -# VITE_MASTER_WALLET_MNEMONIC: ${{ secrets.VITE_MASTER_WALLET_MNEMONIC }} -# VITE_PROVIDER_URL: ${{ inputs.providerUrl || 'https://devnet.fuel.network/v1/graphql' }} - -# - uses: actions/upload-artifact@v4 -# if: always() -# with: -# name: playwright-report -# path: | -# packages/app/playwright-report/ -# packages/app/playwright-html/ -# retention-days: 30 - -# - name: Stop Test Node -# run: pnpm node:clean - +name: Devnet tests + +on: + workflow_dispatch: + inputs: + providerUrl: + description: Provider URL (e.g. https://devnet.fuel.network/v1/graphql) + required: false + masterMnemonic: + description: Mnemonic of the wallet that will fund the tests + required: false + push: + branches: + - main + pull_request: + branches: [main, master, sdk-v2] + types: [opened, synchronize, reopened] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + tests-e2e-contracts: + name: E2E Contract Tests - Devnet + runs-on: buildjet-4vcpu-ubuntu-2204 + steps: + - uses: actions/checkout@v3 + - name: Run E2E Contract Tests - Devnet + uses: ./.github/actions/e2e-tests-contracts + with: + ghToken: ${{ secrets.GITHUB_TOKEN }} + providerUrl: "https://devnet.fuel.network/v1/graphql" + masterMnemonic: ${{ secrets.VITE_MASTER_WALLET_MNEMONIC }} + skipDeploy: true diff --git a/.github/workflows/tests-testnet.yaml b/.github/workflows/tests-testnet.yaml index 2513c97709..2812e55488 100644 --- a/.github/workflows/tests-testnet.yaml +++ b/.github/workflows/tests-testnet.yaml @@ -22,11 +22,11 @@ concurrency: jobs: tests-e2e-contracts: - name: E2E Contract Tests - Local + name: E2E Contract Tests - Testnet runs-on: buildjet-4vcpu-ubuntu-2204 steps: - uses: actions/checkout@v3 - - name: Run E2E Contract Tests + - name: Run E2E Contract Tests - Testnet uses: ./.github/actions/e2e-tests-contracts with: ghToken: ${{ secrets.GITHUB_TOKEN }}