-
-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (45 loc) · 1.24 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
name: Tests
on:
pull_request:
push:
branches:
- '*'
tags-ignore:
- '*'
workflow_call:
jobs:
cypress-run:
runs-on: ubuntu-latest
if: >
(github.event_name == 'push' && github.actor == 'smastrom') ||
(github.event_name == 'pull_request' && github.actor != 'smastrom')
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Install Cypress binaries
run: npx cypress install
- name: Install dependecies
run: pnpm install
- name: Build Notivue
run: pnpm build
- name: Install Notivue
run: pnpm install
- name: Test with Vitest
run: pnpm test:unit
- name: Test with Cypress
uses: cypress-io/github-action@v5
timeout-minutes: 15
with:
env: CYPRESS_CI=true
component: true
install: false
working-directory: tests
browser: chrome