Files
go-xcipher/.github/workflows/stability-tests.yml
landaiqing 1f3323def0
Some checks are pending
Stability Tests / Stability Tests (1.24, macos-latest) (push) Waiting to run
Stability Tests / Stability Tests (1.24, ubuntu-latest, true) (push) Waiting to run
Stability Tests / Stability Tests (1.24, windows-latest) (push) Waiting to run
💚 Update Go version to 1.24
2025-03-14 01:07:47 +08:00

61 lines
1.6 KiB
YAML

name: Stability Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
schedule:
- cron: '0 0 * * 0' # Runs weekly at Sunday midnight
jobs:
stability-tests:
name: Stability Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
go-version: ['1.24']
include:
- os: ubuntu-latest
go-version: '1.24'
run-long-tests: true
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Display Go Version
run: go version
- name: Install Dependencies
run: go mod download
- name: Run Basic Tests
run: go test -v -race
- name: Run Concurrent Load Test
if: ${{ matrix.run-long-tests }}
run: go test -v -run TestConcurrentLoad -timeout 30m
- name: Run Fault Tolerance Test
if: ${{ matrix.run-long-tests }}
run: go test -v -run TestFaultTolerance -timeout 10m
- name: Run Resource Constraints Test
if: ${{ matrix.run-long-tests }}
run: go test -v -run TestResourceConstraints -timeout 20m
- name: Run Long-term Stability Test
if: ${{ matrix.run-long-tests }}
run: go test -v -run TestLongRunningStability -timeout 20m
- name: Run Benchmark Tests
if: ${{ matrix.run-long-tests }}
run: go test -bench=. -benchmem -timeout 30m