-
Notifications
You must be signed in to change notification settings - Fork 10
58 lines (51 loc) · 1.53 KB
/
ci.yml
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
54
55
56
57
58
name: ci
on: [push, pull_request]
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎
uses: actions/checkout@v1
- name: Cypress run 🧪
uses: cypress-io/github-action@v2
with:
browser: chrome
headless: true
# our tests always have screenshots
- name: Store screenshots 🖼
uses: actions/upload-artifact@v1
if: always()
with:
name: cypress-screenshots
path: cypress/screenshots
# Test run video was always captured, so this action uses "always()" condition
- name: Store videos 🎞
uses: actions/upload-artifact@v1
if: always()
with:
name: cypress-videos
path: cypress/videos
- name: Generate gif movies 🎥
env:
DEBUG: cypress-movie
run: |
node bin/record.js \
--width 1280 --fps 30 --format gif \
--spec cypress/integration/gif-spec.js
- name: Generate mp4 movies 🎥
env:
DEBUG: cypress-movie
run: |
node bin/record.js \
--width 1280 --format mp4 \
--spec cypress/integration/gif-spec.js
- name: Store movies 🎞
uses: actions/upload-artifact@v1
with:
name: cypress-movies
path: cypress/movies
- name: Semantic Release 🚀
uses: cycjimmy/semantic-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}