aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ec-integration-tests.yml
blob: ea476b77c0c02f2ecc81115e211f76e0891e3b02 (plain)
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
name: "EC Integration Tests"

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

permissions:
  contents: read

jobs:
  ec-integration-tests:
    name: EC Integration Tests
    runs-on: ubuntu-22.04
    timeout-minutes: 30
    steps:
    - name: Set up Go 1.x
      uses: actions/setup-go@v6
      with:
        go-version: ^1.24
      id: go

    - name: Check out code into the Go module directory
      uses: actions/checkout@v4

    - name: Build weed binary
      run: |
        cd weed && go build -o weed .

    - name: Run EC Integration Tests
      working-directory: test/erasure_coding
      run: |
        go test -v

    - name: Archive logs
      if: failure()
      uses: actions/upload-artifact@v4
      with:
        name: ec-integration-test-logs
        path: test/erasure_coding