-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (60 loc) · 1.72 KB
/
stress.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
name: Stress Tests
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
jobs:
stress:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
if: ${{ runner.os == 'Linux' }}
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: false
- name: Free Disk Space (macOS)
if: ${{ runner.os == 'macOS' }}
working-directory: /Applications
run: |
echo 'BEFORE CLEANUP:'
df -h
sudo find . -name Xcode\*.app -delete
sudo rm -rf /Users/runner/Library/Android
echo 'AFTER CLEANUP:'
df -h
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node LTS
uses: actions/setup-node@v4
with:
node-version: lts/*
check-latest: true
- name: Install packages
run: npm ci
- name: Run tests
run: npm run stress
- name: Upload mysqlmsn directory (Windows)
if: ${{ failure() && runner.os == 'Windows' }}
uses: actions/[email protected]
with:
name: ${{ matrix.os }}
path: "C:\\Users\\RUNNER~1\\mysqlmsn"
compression-level: 9
- name: Upload mysqlmsn directory (Not Windows)
if: ${{ failure() && runner.os != 'Windows' }}
uses: actions/[email protected]
with:
name: ${{ matrix.os }}
path: /tmp/mysqlmsn
compression-level: 9