-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (67 loc) · 1.95 KB
/
Copy pathtest.yml
File metadata and controls
80 lines (67 loc) · 1.95 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
name: E2E Test
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
concurrency:
group: e2e-test-${{ github.ref }}
cancel-in-progress: true
jobs:
e2e:
name: E2E (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
# os: [ubuntu-24.04, windows-latest, macos-latest]
os: [ubuntu-24.04, macos-latest]
steps:
- name: Checkout Code
uses: actions/checkout@v6
- name: Setup Node.js 22
uses: actions/setup-node@v6
with:
node-version: '22'
- name: Setup Rust (wasm32)
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
with:
workspaces: |
./lib_test -> target
./server-rs -> target
- name: Setup LLVM for WASM (macOS)
if: runner.os == 'macOS'
run: |
brew install llvm
echo "CC=$(brew --prefix llvm)/bin/clang" >> $GITHUB_ENV
echo "AR=$(brew --prefix llvm)/bin/llvm-ar" >> $GITHUB_ENV
- name: Install wrangler
run: npm i -g wrangler@4.120.0
- name: Free up port 80 (Linux)
if: runner.os == 'Linux'
run: sudo sysctl -w net.ipv4.ip_unprivileged_port_start=0
- name: Free up port 80 (Windows)
if: runner.os == 'Windows'
shell: powershell
run: |
Stop-Service -Name W3SVC -Force -ErrorAction SilentlyContinue
Stop-Service -Name PeerDistSvc -Force -ErrorAction SilentlyContinue
Stop-Service -Name SyncShareSvc -Force -ErrorAction SilentlyContinue
- name: Run full E2E suite
working-directory: ./lib_test
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
sudo -E cargo run
else
cargo run
fi
shell: bash