-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (70 loc) · 2.04 KB
/
ci.yml
File metadata and controls
85 lines (70 loc) · 2.04 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: CI
on:
push:
branches:
- develop
- master
- feature/**
pull_request:
branches:
- develop
- master
workflow_dispatch:
inputs:
run_full:
description: Run full pipeline (coverage + full E2E)
required: false
type: boolean
default: false
schedule:
- cron: '0 2 * * *'
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
fast:
name: Fast lane (unit + integration + e2e smoke)
runs-on: ubuntu-latest
if: >
(github.event_name == 'push' && github.ref != 'refs/heads/master') ||
(github.event_name == 'pull_request' && github.base_ref != 'master') ||
(github.event_name == 'workflow_dispatch' && inputs.run_full != true)
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Install Playwright browser and system deps
run: npx playwright install --with-deps chromium
- name: Run fast CI lane
run: npm run test:ci:fast
full:
name: Full lane (coverage + full e2e)
runs-on: ubuntu-latest
if: >
(github.event_name == 'push' && github.ref == 'refs/heads/master') ||
(github.event_name == 'pull_request' && github.base_ref == 'master') ||
github.event_name == 'schedule' ||
(github.event_name == 'workflow_dispatch' &&
inputs.run_full == true)
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Install Playwright browser and system deps
run: npx playwright install --with-deps chromium
- name: Verify Docker availability
run: docker --version
- name: Run full CI lane
run: npm run test:ci:full