From e1f8c80dfa7ff0b045789715dec693b10bc692ae Mon Sep 17 00:00:00 2001 From: Igor Santos Date: Wed, 30 Oct 2024 10:55:16 -0300 Subject: [PATCH] fix(gh-actions): remove tests on pipeline --- .github/workflows/tests.yml | 72 ------------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index 103216aa29..0000000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,72 +0,0 @@ -name: Reusable tests for apps -on: - workflow_call: - -jobs: - tests: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: 14 - - - uses: pnpm/action-setup@v2.0.1 - name: Install pnpm - id: pnpm-install - with: - version: 7 - run_install: false - - - name: Get pnpm store directory - id: pnpm-cache - run: | - echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" - - - uses: actions/cache@v3 - name: Setup pnpm cache - with: - path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/clients/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- - - - name: Install dependencies - run: cd clients && pnpm i - - - name: Build components and core-tools to run tests in clients - run: cd clients && pnpm --filter "./libs/**" m run build - - - name: Run tests - run: cd clients && pnpm test - env: - REACT_APP_DOMAIN_API_GRAPHQL: http://localhost:3000 - DISABLE_MOCKED_WARNING: true - - # - name: Map webpage hostname - # run: sudo echo "127.0.0.1 testes-de-widgets-com-cypress.bonde.devel" | sudo tee -a /etc/hosts - - # - name: Run e2e tests - # run: cd clients && pnpm --filter webpage-client m run build && pnpm --filter webpage-client m run e2e:headless && exit 0 - # env: - # REACT_APP_DOMAIN_API_GRAPHQL: https://api-graphql.staging.bonde.org/v1/graphql - - # - uses: actions/upload-artifact@v3 - # with: - # name: webpage-client-cypress-results - # path: | - # clients/packages/webpage-client/cypress/screenshots/ - # clients/packages/webpage-client/cypress/videos/ - - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2 - with: - token: ${{ secrets.CODECOV_TOKEN }} - fail_ci_if_error: true - directory: ./clients/coverage - flags: unittests - verbose: true