forked from fkhadra/react-contexify
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (31 loc) · 867 Bytes
/
Copy pathbuild.yaml
File metadata and controls
33 lines (31 loc) · 867 Bytes
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
name: React-contexify CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install example dependencies
run: cd example && yarn
- name: Install dependencies & build
run: yarn
- name: Run cypress
uses: cypress-io/github-action@v6
with:
browser: chrome
start: yarn start
wait-on: 'http://localhost:1234'
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
- uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-videos
path: cypress/videos