Skip to content

Commit

Permalink
chore: upgrade cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Dec 27, 2023
1 parent f15170f commit 241b8f4
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 25 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ jobs:
version: 8

- name: Install dependencies and launch Cypress tests
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
with:
build: pnpm run build
start: pnpm run start

- name: Argos screenshots upload
if: ${{ always() }}
run: pnpm exec argos upload cypress/screenshots
7 changes: 7 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
const { defineConfig } = require("cypress");
const { registerArgosTask } = require("@argos-ci/cypress/task");

module.exports = defineConfig({
e2e: {
baseUrl: "http://localhost:3000/",
video: false,
setupNodeEvents(on, config) {
registerArgosTask(on, config, {
// Enable upload to Argos only when it runs on CI.
uploadToArgos: !!process.env.CI,
});
},
},
});
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@argos-ci/cli": "^1.0.2",
"@argos-ci/cypress": "^1.1.2",
"@argos-ci/cli": "^1.0.5",
"@argos-ci/cypress": "^1.3.0",
"@babel/core": "^7.23.2",
"@radix-ui/colors": "^3.0.0",
"@tailwindcss/typography": "^0.5.10",
Expand Down
39 changes: 21 additions & 18 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 241b8f4

Please sign in to comment.