Repository navigation
78 lines (73 loc) · 2.03 KB
/
Copy pathci.yml
File metadata and controls
78 lines (73 loc) · 2.03 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
name: CI
on:
push:
branches: [main, develop]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# Plugin builds + lints across its full supported Node range (engines: 20–24).
lint-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [22, 24]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn build
# Jest unit + integration. The integration suite boots the playground, which
# only supports Node <= 22, so the matrix stops there.
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
cache-dependency-path: |
yarn.lock
playground/yarn.lock
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn yalc publish --private
- run: yarn playground:install
- run: yarn playground:build
- run: yarn test:jest
# Cypress e2e against the running playground.
e2e:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: yarn
cache-dependency-path: yarn.lock
- run: yarn install --frozen-lockfile
- name: Start e2e services
run: yarn e2e:services:up
- name: Run cypress
uses: cypress-io/github-action@v6
with:
install: false
command: yarn test:cypress
- name: Dump Docker logs
if: failure()
run: docker compose logs --no-color
- name: Stop e2e services
if: always()
run: yarn e2e:services:down