-
Notifications
You must be signed in to change notification settings - Fork 1
137 lines (114 loc) · 3.86 KB
/
Copy pathtest.yml
File metadata and controls
137 lines (114 loc) · 3.86 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
name: Public test suite
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
concurrency:
group: public-tests-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
policy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out tests
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Set up Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 24.18.0
- name: Set up Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.0
- name: Check public suite policy
run: ./test policy
unit:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check out tests
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
path: core-tests
- name: Read pinned Core revision
id: core-ref
run: echo "ref=$(tr -d '\n' < core-tests/core.ref)" >> "$GITHUB_OUTPUT"
- name: Check out Core
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
repository: Windshiftapp/core
ref: ${{ steps.core-ref.outputs.ref }}
path: core
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: core/go.mod
cache-dependency-path: core/go.sum
- name: Set up Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version-file: core/.nvmrc
- name: Set up Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.0
- name: Run fast unit tests
working-directory: core-tests
run: ./test --core ../core quick
browser:
runs-on: ubuntu-latest
timeout-minutes: 45
env:
CI: "true"
E2E_FAIL_ON_UNEXPECTED_SKIP: "1"
E2E_FAIL_ON_RETRY: "1"
E2E_KEEP_ARTIFACTS: "1"
steps:
- name: Check out tests
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
path: core-tests
- name: Read pinned Core revision
id: core-ref
run: echo "ref=$(tr -d '\n' < core-tests/core.ref)" >> "$GITHUB_OUTPUT"
- name: Check out Core
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
repository: Windshiftapp/core
ref: ${{ steps.core-ref.outputs.ref }}
path: core
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: core/go.mod
cache-dependency-path: core/go.sum
- name: Set up Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version-file: core/.nvmrc
- name: Set up Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.0
- name: Install Chromium
working-directory: core-tests/e2e
run: |
npm ci
bun --bun playwright install --with-deps chromium
- name: Run browser tests
working-directory: core-tests
run: ./test --core ../core browser
- name: Upload failure artifacts
if: failure()
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: public-browser-failure
if-no-files-found: ignore
path: |
core/.e2e-server-*.log
core-tests/e2e/e2e-summary*.json
core-tests/e2e/playwright-report-*/
core-tests/e2e/test-results-*/