-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (73 loc) · 3.37 KB
/
main.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Cypress Tests
on: [pull_request, pull_request_target]
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- uses: suisei-cn/actions-download-file@v1
id: pluginsindex # Remember to give an ID if you need the output filename
name: Plugins Index
with:
url: "https://test-mod2-back.web.app/front-tests/plugins/index.js"
target: cypress/plugins/
# =========================================================================
- uses: suisei-cn/actions-download-file@v1
id: supportindex # Remember to give an ID if you need the output filename
name: Support Index
with:
url: "https://test-mod2-back.web.app/front-tests/support/index.js"
target: cypress/support/
# =========================================================================
- uses: suisei-cn/actions-download-file@v1
id: commands # Remember to give an ID if you need the output filename
name: Commands
with:
url: "https://test-mod2-back.web.app/front-tests/commands.js"
target: cypress/support/
# =========================================================================
- uses: suisei-cn/actions-download-file@v1
id: highlightmovie # Remember to give an ID if you need the output filename
name: Highlight Movie
with:
url: "https://test-mod2-back.web.app/front-tests/highlight-movie.json"
target: cypress/fixtures/
# =========================================================================
- uses: suisei-cn/actions-download-file@v1
id: basemovies # Remember to give an ID if you need the output filename
name: Base movies
with:
url: "https://test-mod2-back.web.app/front-tests/base-movies.json"
target: cypress/fixtures/
# =========================================================================
- uses: suisei-cn/actions-download-file@v1
id: matrixsearch # Remember to give an ID if you need the output filename
name: Matrix Search
with:
url: "https://test-mod2-back.web.app/front-tests/matrix-search.json"
target: cypress/fixtures/
# =========================================================================
- uses: suisei-cn/actions-download-file@v1
id: testsspecjs # Remember to give an ID if you need the output filename
name: Test Spec
with:
url: "https://test-mod2-back.web.app/front-tests/tests.spec.js"
target: cypress/integration/
# =========================================================================
- uses: suisei-cn/actions-download-file@v1
id: highlightvideo # Remember to give an ID if you need the output filename
name: HighLight Video
with:
url: "https://test-mod2-back.web.app/front-tests/highlight-video.json"
target: cypress/fixtures/
# =========================================================================
- name: Cypress run
uses: cypress-io/github-action@v2
with:
# Linux and MacOS
start: npm start
# Takes precedences on Windows
start-windows: npm run start:windows:server