-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (44 loc) · 1.31 KB
/
test.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
name: Build and test
on: [push, pull_request, workflow_dispatch]
jobs:
build-test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
uses: pnpm/action-setup@v4
with:
run_install: true
- name: Build
run: pnpm build
- name: Lint
run: pnpm lint
- name: Test with Electron
uses: cypress-io/github-action@v6
with:
command: pnpm run test
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Test with Chrome
uses: cypress-io/github-action@v6
with:
install: false
component: true
browser: chrome
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Error: "The browser never connected."
# - name: Test with Firefox
# uses: cypress-io/github-action@v6
# with:
# install: false
# component: true
# browser: firefox
# env:
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}