generated from M-Media-Group/Vue3-SPA-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.08 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
name: Cypress Tests
on: [push]
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: npm ci
- name: Translation validation
run: npm run translation-key-check
- name: Unit tests run
run: npm run test:unit
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/[email protected] # use the explicit version number
with:
parallel: true
record: false
build: npm run build
command: npm run test:e2e
- name: Install Playwright
run: npx playwright install --with-deps
- name: Run Storybook tests
run: npm run test:visual:ci
# Deploy to Netlify by calling https://api.netlify.com/build_hooks/6628d4d283f0ae00a3223b33
netlify-deploy:
needs: cypress-run
runs-on: ubuntu-latest
steps:
- name: Deploy
run: curl -X POST -d {} https://api.netlify.com/build_hooks/6628d4d283f0ae00a3223b33