-
Notifications
You must be signed in to change notification settings - Fork 11
42 lines (33 loc) · 1011 Bytes
/
cypress.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
name: cypress tests
on: [pull_request]
jobs:
build:
name: Building site and running cypress tests
runs-on: ubuntu-latest
steps:
- name: Checkout source.
uses: actions/checkout@v2
- name: Install jekyll site dependencies.
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
bundler-cache: true
- name: Install cypress dependencies.
run: npm ci
- name: Start up jekyll server.
run: npm run start-detached
- name: Run cypress.
run: npm run cypress-tests
- name: Publish test results.
uses: EnricoMi/publish-unit-test-result-action@v1
if: github.actor != 'dependabot[bot]'
with:
files: cypress/results/*.xml
check_name: "Cypress Test Results"
- name: Archive test results.
uses: actions/upload-artifact@v2
if: always()
with:
name: cypress-results
path: cypress/results
retention-days: 2