-
Notifications
You must be signed in to change notification settings - Fork 20
53 lines (51 loc) · 1.45 KB
/
cypress.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: cypress
on:
pull_request:
paths:
- .github/workflows/cypress.yaml
- src/**
- cypress/**
- cypress.*
- '*.json'
- yarn.lock
push:
branches:
- main
paths:
- .github/workflows/cypress.yaml
- src/**
- cypress/**
- cypress.*
- '*.json'
- yarn.lock
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version-file: .node-version
cache: yarn
- uses: cypress-io/github-action@v4
with:
component: true
browser: chrome
- uses: int128/upload-artifact-wiki-action@v1
id: upload-artifact-wiki
with:
path: cypress/screenshots/**/*.png
- uses: int128/comment-action@v1
with:
post: |
<table>
<tr>
<td><img src="${{ steps.upload-artifact-wiki.outputs.url }}/cypress/screenshots/App.cy.tsx/App%20--%20mounts.png"></td>
<td><img src="${{ steps.upload-artifact-wiki.outputs.url }}/cypress/screenshots/App.cy.tsx/App%20--%20enables%20dark%20mode.png"></td>
</tr>
<tr>
<td><img src="${{ steps.upload-artifact-wiki.outputs.url }}/cypress/screenshots/App.cy.tsx/App%20--%20opens%20the%20bookmark%20editor.png"></td>
<td></td>
</tr>
</table>