From f5313fda40af5e1dc09e75a87c7b75a5f1dfbefa Mon Sep 17 00:00:00 2001 From: Ilya Maroz <37909603+ilyamore88@users.noreply.github.com> Date: Sun, 2 Apr 2023 22:16:45 +0100 Subject: [PATCH] ci(tests): improve workflow for running tests (#2328) * ci: use ubuntu container for edge runner * chore: upgrade CHANGELOG.md * chore: fix linter in cypress config --- .github/workflows/cypress.yml | 2 +- cypress.config.ts | 6 +++--- docs/CHANGELOG.md | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 08d797a8..1faad97e 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -28,7 +28,7 @@ jobs: browser: chrome build: yarn build edge: - runs-on: windows-latest + runs-on: ubuntu-latest steps: - uses: actions/setup-node@v3 with: diff --git a/cypress.config.ts b/cypress.config.ts index cf89c7c9..ed2c10f0 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -1,4 +1,4 @@ -import { defineConfig } from 'cypress' +import { defineConfig } from 'cypress'; export default defineConfig({ env: { @@ -11,9 +11,9 @@ export default defineConfig({ // We've imported your old cypress plugins here. // You may want to clean this up later by importing these. setupNodeEvents(on, config) { - return require('./test/cypress/plugins/index.ts')(on, config) + return require('./test/cypress/plugins/index.ts')(on, config); }, specPattern: 'test/cypress/tests/**/*.cy.{js,jsx,ts,tsx}', supportFile: 'test/cypress/support/index.ts', }, -}) +}); diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 10ef89cb..4edbb8a8 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -12,6 +12,7 @@ - `Improvement` — *Dependencies* — Upgrade TypeScript to v5. - `Fix` — *ToolsAPI* — `pasteConfig` getter with `false` value could be used to disable paste handling by Editor.js core. Could be useful if your tool has its own paste handler. - `Improvement` — *Dependencies* — Upgrade Cypress to v12, upgrade related libraries to latest versions. +- `CI` — Use Ubuntu container for Edge tests runner. ### 2.26.5