From e0be33a04303e0d054eb62d2008f0321d8b25e7a Mon Sep 17 00:00:00 2001 From: Anton Pawlik Date: Fri, 13 Dec 2024 15:49:57 +0100 Subject: [PATCH] remove cypress usage --- .github/workflows/_tests.yml | 46 ------------------------------------ package.json | 2 -- test-results/junit.xml | 0 3 files changed, 48 deletions(-) create mode 100644 test-results/junit.xml diff --git a/.github/workflows/_tests.yml b/.github/workflows/_tests.yml index 9a52693..5f600eb 100644 --- a/.github/workflows/_tests.yml +++ b/.github/workflows/_tests.yml @@ -27,49 +27,3 @@ jobs: - name: 📝 Run frontend unit tests run: pnpm test:unit:ci shell: bash - - integration_tests: - runs-on: ubuntu-latest - timeout-minutes: 15 - - steps: - - uses: actions/checkout@v4 - - - uses: ./.github/actions/setup - with: - run_install: true - - # Run frontend integration test with the Cypress runner - # https://github.com/cypress-io/github-action - - name: 📝 Run integration tests - uses: cypress-io/github-action@c8b086ac389f43967b149b87d5f9cfe73f4ed20e - with: - component: true - install: false - headed: false - browser: chrome - command: pnpm test:integration - build: npx cypress info - env: - # Enables Cypress debugging logs, very useful if Cypress crashes, like out-of-memory issues. - # DEBUG: "cypress:*" # Enable all logs. See https://docs.cypress.io/guides/references/troubleshooting.html#Print-DEBUG-logs - DEBUG: "cypress:server:util:process_profiler" # Enable logs for "memory and CPU usage". See https://docs.cypress.io/guides/references/troubleshooting.html#Log-memory-and-CPU-usage - NODE_ENV: production - - - name: ⬆️ Upload Images - if: failure() - uses: actions/upload-artifact@v3 - with: - name: cypress-screenshots - path: ./cypress/screenshots - if-no-files-found: ignore - retention-days: 5 - - - name: ⬆️ Upload Videos - if: failure() - uses: actions/upload-artifact@v3 - with: - name: cypress-videos - path: ./cypress/videos - if-no-files-found: ignore - retention-days: 5 diff --git a/package.json b/package.json index 55e4952..0603c66 100644 --- a/package.json +++ b/package.json @@ -29,8 +29,6 @@ "lint:all": "pnpm run lint:check && pnpm run lint:headers && pnpm run lint:format", "test:unit": "TZ=UTC pnpm vitest run --outputFile.junit=./test-results/junit.xml", "test:unit:ci": "pnpm test:unit --coverage --silent", - "test:integration": "pnpm cypress run --component --env ELECTRON_EXTRA_LAUNCH_ARGS=--disable-gpu,LIBVA_DRIVER_NAME=--disable-software-rasterizer", - "test:integration:open": "pnpm cypress open --component --browser=chrome", "preview": "vite preview", "storybook": "BUILD_ENV='storybook' storybook dev -p 6006", "storybook:build": "BUILD_ENV='storybook' storybook build" diff --git a/test-results/junit.xml b/test-results/junit.xml new file mode 100644 index 0000000..e69de29