You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.0 KiB
46 lines
1.0 KiB
name: Telemetry Integration Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'telemetry/**'
|
|
- 'weed/telemetry/**'
|
|
- '.github/workflows/telemetry-integration.yml'
|
|
pull_request:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'telemetry/**'
|
|
- 'weed/telemetry/**'
|
|
- '.github/workflows/telemetry-integration.yml'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
telemetry-integration-test:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
|
|
- name: Build telemetry server
|
|
run: cd telemetry/server && go build -o telemetry-server .
|
|
|
|
- name: Run telemetry integration test
|
|
run: go run telemetry/test/integration.go
|
|
|
|
- name: Upload test logs on failure
|
|
if: failure()
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: telemetry-test-logs
|
|
path: telemetry-server-test.log
|
|
retention-days: 7
|