From 03773a4b7853736e2633ad5610f1de653018f344 Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Fri, 24 May 2024 18:13:58 +0200 Subject: [PATCH] Update CI --- .github/workflows/lint-and-test.yml | 25 +++++++++++++++++++++++++ .github/workflows/tests.yml | 16 ---------------- 2 files changed, 25 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/lint-and-test.yml delete mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml new file mode 100644 index 0000000000..8786f9ebab --- /dev/null +++ b/.github/workflows/lint-and-test.yml @@ -0,0 +1,25 @@ +name: Linting & e2e tests + +on: push + +jobs: + lint-and-test: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + # Install npm dependencies, cache them correctly + - name: Cypress run + uses: cypress-io/github-action@v6 + with: + # just perform install + runTests: false + - name: Lint with ESLint + run: yarn lint + - name: Run e2e tests + uses: cypress-io/github-action@v6 + with: + # we have already installed all dependencies above + install: false + # run server in the background + start: yarn dev diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index 7e842dbf7f..0000000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: End-to-end tests - -on: push - -jobs: - cypress-run: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v4 - # Install npm dependencies, cache them correctly - # and run all Cypress tests - - name: Cypress run - uses: cypress-io/github-action@v6 - with: - start: yarn dev