From 479e31987e6d54fc73f5d49234f330ca22353f35 Mon Sep 17 00:00:00 2001 From: Dominik Stahl Date: Mon, 12 May 2025 23:00:29 +0200 Subject: [PATCH] chore: add testing workflow --- .github/workflows/tests.yml | 26 ++++++++++++++++++++++++++ cypress.config.ts | 6 ------ 2 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..d1132af --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,26 @@ +name: tests +on: + push: + branches: + - main + - renovate/* + pull_request: +jobs: + tests: + name: Tests + runs-on: docker + container: + image: ghcr.io/di0ik/forgejo_runner_container:main@sha256:672aee9a5dfc35531db3a218ad9486eb5c5d7d9ac10bdcba13110470c10403ee + steps: + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + + - name: Enable corepack + run: corepack enable + + - name: Cypress run + uses: cypress-io/github-action@v6 + with: + build: yarn run build + start: yarn start + component: true diff --git a/cypress.config.ts b/cypress.config.ts index 768b87a..d2013c5 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -1,12 +1,6 @@ import { defineConfig } from 'cypress'; export default defineConfig({ - e2e: { - setupNodeEvents(on, config) { - // implement node event listeners here - }, - }, - component: { devServer: { framework: 'next',