|
| 1 | +name: Go |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + pull_request: |
| 8 | + branches: |
| 9 | + - main |
| 10 | + |
| 11 | +concurrency: |
| 12 | + group: ${{github.workflow}}-${{ github.ref }} |
| 13 | + cancel-in-progress: true |
| 14 | + |
| 15 | +jobs: |
| 16 | + unit-tests: |
| 17 | + name: unit tests |
| 18 | + runs-on: ubuntu-latest |
| 19 | + steps: |
| 20 | + - uses: actions/setup-go@v5 |
| 21 | + with: |
| 22 | + go-version: '1.22.2' |
| 23 | + cache-dependency-path: "**/*.sum" |
| 24 | + - uses: actions/checkout@v4 |
| 25 | + - run: go mod verify |
| 26 | + - run: go test ./... |
| 27 | + |
| 28 | + fuzz-tests: |
| 29 | + name: fuzz tests |
| 30 | + runs-on: ubuntu-latest |
| 31 | + steps: |
| 32 | + - uses: actions/setup-go@v5 |
| 33 | + with: |
| 34 | + go-version: '1.22.2' |
| 35 | + cache-dependency-path: "**/*.sum" |
| 36 | + - uses: actions/checkout@v4 |
| 37 | + - run: go mod verify |
| 38 | + - run: go mod download |
| 39 | + - run: cd fuzz && go test ./... |
| 40 | + |
| 41 | + integration-tests: |
| 42 | + name: integration tests |
| 43 | + runs-on: ubuntu-latest |
| 44 | + steps: |
| 45 | + - uses: actions/setup-go@v5 |
| 46 | + with: |
| 47 | + go-version: '1.22.2' |
| 48 | + cache-dependency-path: "**/*.sum" |
| 49 | + - uses: actions/checkout@v4 |
| 50 | + - run: go mod verify |
| 51 | + - run: go mod download |
| 52 | + - run: cd integration && go test ./... |
| 53 | + |
| 54 | + go-vet: |
| 55 | + name: go vet |
| 56 | + runs-on: ubuntu-latest |
| 57 | + permissions: |
| 58 | + contents: read |
| 59 | + pull-requests: read |
| 60 | + checks: write |
| 61 | + steps: |
| 62 | + - uses: actions/setup-go@v5 |
| 63 | + with: |
| 64 | + go-version: '1.22.2' |
| 65 | + cache-dependency-path: "**/*.sum" |
| 66 | + - uses: actions/checkout@v4 |
| 67 | + - run: go vet ./... |
| 68 | + - run: cd fuzz && go vet ./... |
| 69 | + - run: cd integration && go vet ./... |
| 70 | + |
| 71 | + golangci-lint: |
| 72 | + name: golangci-lint |
| 73 | + runs-on: ubuntu-latest |
| 74 | + permissions: |
| 75 | + contents: read |
| 76 | + pull-requests: read |
| 77 | + checks: write |
| 78 | + steps: |
| 79 | + - uses: actions/setup-go@v5 |
| 80 | + with: |
| 81 | + go-version: '1.22.2' |
| 82 | + cache-dependency-path: "**/*.sum" |
| 83 | + - uses: actions/checkout@v4 |
| 84 | + - uses: golangci/golangci-lint-action@v5 |
| 85 | + with: |
| 86 | + version: 'v1.57.2' |
| 87 | + - uses: golangci/golangci-lint-action@v5 |
| 88 | + with: |
| 89 | + working-directory: 'fuzz' |
| 90 | + version: 'v1.57.2' |
| 91 | + - uses: golangci/golangci-lint-action@v5 |
| 92 | + with: |
| 93 | + working-directory: 'integration' |
| 94 | + version: 'v1.57.2' |
0 commit comments