Skip to content

Commit 456c140

Browse files
committed
wip(ci/cd): archive screenshots
1 parent 1451d0b commit 456c140

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,9 @@ jobs:
3636
- name: linter readme.md
3737
run: npm run lint:markdown
3838
- name: Cypress run
39-
uses: cypress-io/github-action@v5
39+
uses: cypress-io/github-action@v5
40+
- name: Archive screenshots
41+
uses: actions/upload-artifact@v3
42+
with:
43+
name: screenshot
44+
path: cypress/screenshots/

cypress/e2e/spec.cy.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
describe('template spec', () => {
22
it('passes', () => {
3-
cy.visit('https://example.cypress.io')
3+
cy.visit('http://angular.traefik.me');
4+
cy.screenshot('first-page');
45
})
56
})

0 commit comments

Comments
 (0)