-
Notifications
You must be signed in to change notification settings - Fork 28
43 lines (36 loc) · 1.25 KB
/
ci.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
name: Dev CI/CD
on:
pull_request:
types: [opened, reopened, ready_for_review, synchronize]
jobs:
test-suites:
timeout-minutes: 60
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
container:
image: cypress/browsers:node16.5.0-chrome97-ff96
options: --user 1001
strategy:
fail-fast: false
matrix:
browser: [chrome, firefox]
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Install dependencies with currents Cypress binary
run: CYPRESS_DOWNLOAD_MIRROR=https://cy-cdn.currents.dev pnpm install
- name: Cypress tests
uses: cypress-io/github-action@v6
with:
command: pnpm cypress-cloud run --browser ${{ matrix.browser }} --record --parallel --key ${{ secrets.CYPRESS_CONSOLE_RECORD_KEY }} --ci-build-id ui-${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt}}
start: pnpm dev
wait-on: 'http://localhost:3000'
wait-on-timeout: 180
install: false
env:
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}