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.
49 lines
1.1 KiB
49 lines
1.1 KiB
name: EC Integration Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'weed/admin/**'
|
|
- 'weed/worker/**'
|
|
- 'test/erasure_coding/admin_dockertest/**'
|
|
- '.github/workflows/ec-integration.yml'
|
|
pull_request:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'weed/admin/**'
|
|
- 'weed/worker/**'
|
|
- 'test/erasure_coding/admin_dockertest/**'
|
|
- '.github/workflows/ec-integration.yml'
|
|
|
|
jobs:
|
|
ec-integration-test:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.24'
|
|
|
|
- name: Build weed binary
|
|
run: |
|
|
cd weed
|
|
go build -o ../weed_bin
|
|
|
|
- name: Run EC integration tests
|
|
run: |
|
|
cd test/erasure_coding/admin_dockertest
|
|
go test -v -timeout 15m ec_integration_test.go
|
|
|
|
- name: Upload test logs on failure
|
|
if: failure()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ec-test-logs
|
|
path: test/erasure_coding/admin_dockertest/tmp/logs/
|
|
retention-days: 7
|