-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (36 loc) · 961 Bytes
/
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
name: Test
on:
push:
branches: [main, develop]
tags: ['**']
pull_request:
types: [opened, reopened, synchronize]
jobs:
test:
name: Test with Cypress
runs-on: ubuntu-20.04
steps:
- name: Get the latest pnpm version
id: pnpm
run: echo "::set-output name=latest-version::$(npm show pnpm version)"
shell: bash
- name: Install pnpm
uses: pnpm/action-setup@v2.0.1
with:
version: ${{ steps.pnpm.outputs.latest-version }}
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Cypress run
uses: cypress-io/github-action@v4
with:
install: false
build: pnpm build
start: pnpm sandbox
wait-on: 'http://localhost:9000'