-
Notifications
You must be signed in to change notification settings - Fork 46
111 lines (111 loc) · 2.81 KB
/
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
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
name: Test
on:
pull_request:
branches:
- main
permissions:
repository-projects: read
contents: read
actions: write
pull-requests: write
statuses: read
env:
CI: 1
TURBO_TELEMETRY_DISABLED: 1
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
uses: ./.github/workflows/workflow-build.yml
secrets: inherit
with:
runs-on: lynx-ubuntu-24.04-xlarge #todo: use medium once its ready
test-rspeedy:
needs: build
uses: ./.github/workflows/workflow-test.yml
secrets: inherit
with:
runs-on: lynx-ubuntu-24.04-xlarge #todo: use medium once its ready
run: >
sudo apt-get update &&
sudo apt-get install -y iproute2 &&
pnpm run test
--project rspeedy
--project 'rspeedy/*'
--test-timeout=50000
--coverage
--no-cache
--logHeapUsage
--silent
files: |
package.json
pnpm-lock.yaml
vitest.config.ts
packages/rspeedy/**
.github/workflows/**
test-react:
needs: build
uses: ./.github/workflows/workflow-test.yml
secrets: inherit
with:
runs-on: lynx-ubuntu-24.04-xlarge #todo: use medium once its ready
run: >
pnpm
--filter @lynx-js/react-runtime
--filter @lynx-js/react-worklet-runtime
--filter @lynx-js/react-transform
run test
--test-timeout=50000
--no-cache
--logHeapUsage
--silent
files: |
package.json
pnpm-lock.yaml
vitest.config.ts
packages/react/**
.github/workflows/**
test-plugins:
needs: build
uses: ./.github/workflows/workflow-test.yml
secrets: inherit
with:
runs-on: lynx-ubuntu-24.04-xlarge #todo: use medium once its ready
run: >
pnpm run test
--project 'webpack/*'
--test-timeout=50000
--coverage
--no-cache
--logHeapUsage
--silent
files: |
package.json
pnpm-lock.yaml
vitest.config.ts
packages/webpack/**
.github/workflows/**
playwright-linux:
needs: build
uses: ./.github/workflows/workflow-test.yml
secrets: inherit
with:
runs-on: lynx-ubuntu-24.04-xlarge
is-web: true
run: |
export NODE_OPTIONS="--max-old-space-size=32768"
pnpm --filter @lynx-js/web-tests run test:install
pnpm --filter @lynx-js/web-tests run test
test-rust:
uses: ./.github/workflows/rust.yml
secrets: inherit
with:
runs-on: lynx-ubuntu-24.04-xlarge #todo: use medium once its ready
files: |
**/*.rs
**/Cargo.toml
packages/react/transform/index.d.ts
.rustfmt.toml
rust-toolchain
.github/workflows/rust.yml