Skip to content

Commit

Permalink
Update to Cypress 10 (#100)
Browse files Browse the repository at this point in the history
* Updated to Cypress 10
* Archive test results on failure
* Run tests on master branch too

Co-authored-by: ckulka <[email protected]>
  • Loading branch information
ckulka and ckulka authored Sep 28, 2022
1 parent dfc61d7 commit f59a5ec
Show file tree
Hide file tree
Showing 7 changed files with 778 additions and 641 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
name: test

on:
push:
branches:
- master
paths:
- .github/workflows/docker-test.yml
- "*.dockerfile"
- cypress/*
- cypress.json
- files/*
- package.json
- package-lock.json
pull_request:
paths:
- .github/workflows/docker-test.yml
Expand Down Expand Up @@ -37,9 +48,8 @@ jobs:
run: npm run test

- name: Archive test results
if: always()
uses: actions/upload-artifact@v2
with:
name: cypress-results-${{ matrix.dockerfile }}
path: |
cypress/screenshots
cypress/videos
path: cypress/videos
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ cypress/videos
cypress/logs
# Currently not needed
cypress/plugins/
cypress/support/

# Node (see https://github.com/github/gitignore/blob/master/Node.gitignore)
.npm/
Expand Down
7 changes: 7 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from "cypress";

export default defineConfig({
e2e: {
supportFile: false,
},
});
1 change: 0 additions & 1 deletion cypress.json

This file was deleted.

File renamed without changes.
Loading

0 comments on commit f59a5ec

Please sign in to comment.