add basic performance monitoring action
This commit is contained in:
41
.github/workflows/performance-monitor.yml
vendored
Normal file
41
.github/workflows/performance-monitor.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Performance Monitor
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
performance-monitor:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.25'
|
||||
|
||||
- name: Cache Go modules
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/go/pkg/mod
|
||||
~/.cache/go-build
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
go build -o bin/reticulum-go ./cmd/reticulum-go
|
||||
|
||||
- name: Run Performance Monitor
|
||||
id: monitor
|
||||
run: |
|
||||
cp tests/scripts/monitor_performance.sh .
|
||||
chmod +x monitor_performance.sh
|
||||
./monitor_performance.sh
|
||||
Reference in New Issue
Block a user