-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (51 loc) · 1.98 KB
/
tests.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
name: Javascript Testing Framework
on: [push]
jobs:
cypress-run:
runs-on: ubuntu-22.04
container: cypress/browsers:node18.12.0-chrome106-ff106
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Copy catalog fixture data for schools
uses: canastro/copy-file-action@ae66602ce7d214dbd2e298c1db67a81388755a0a
with:
source: "./cypress/fixtures/schools.json"
target: "./data/schools.json"
- name: Copy catalog fixture data for courses
uses: canastro/copy-file-action@ae66602ce7d214dbd2e298c1db67a81388755a0a
with:
source: "./cypress/fixtures/courses.json"
target: "./data/courses.json"
- name: Copy catalog fixture data for school_categories
uses: canastro/copy-file-action@ae66602ce7d214dbd2e298c1db67a81388755a0a
with:
source: "./cypress/fixtures/school_categories.json"
target: "./data/school_categories.json"
- name: Copy catalog fixture data for instruction_levels
uses: canastro/copy-file-action@ae66602ce7d214dbd2e298c1db67a81388755a0a
with:
source: "./cypress/fixtures/instruction_levels.json"
target: "./data/instruction_levels.json"
- name: Copy catalog fixture data for credit_types
uses: canastro/copy-file-action@ae66602ce7d214dbd2e298c1db67a81388755a0a
with:
source: "./cypress/fixtures/credit_types.json"
target: "./data/credit_types.json"
- name: Cypress run tests
uses: cypress-io/github-action@v4
with:
build: npm run export
start: npm run start
wait-on: 'http://localhost:3000'
config: baseUrl=http://localhost:3000
- uses: actions/upload-artifact@v3
if: always()
with:
name: cypress-screenshots
path: cypress/screenshots
- uses: actions/upload-artifact@v3
if: always()
with:
name: cypress-videos
path: cypress/videos