feat(replication): skip duplicate blob puts #46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| go-version: ["1.22.x", "1.23.x"] | |
| steps: | |
| # v7.0.0 | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 | |
| # v6.4.0 | |
| - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| cache: true | |
| - name: Vet | |
| run: go vet ./... | |
| - name: Test | |
| run: go test -race -count=1 ./... | |
| - name: Coverage | |
| run: go test -count=1 -coverprofile=coverage.out ./... | |
| # v7.0.1 | |
| - name: Upload coverage | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a | |
| with: | |
| name: coverage-${{ matrix.go-version }} | |
| path: coverage.out | |
| # v9.2.1 | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee | |
| with: | |
| version: v2.1 | |
| govulncheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # v7.0.0 | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 | |
| # v6.4.0 | |
| - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c | |
| with: | |
| go-version: "1.26.x" | |
| cache: true | |
| - name: govulncheck | |
| run: | | |
| go install golang.org/x/vuln/cmd/govulncheck@latest | |
| govulncheck ./... | |
| demo: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # v7.0.0 | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 | |
| # v6.4.0 | |
| - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c | |
| with: | |
| go-version: "1.23.x" | |
| cache: true | |
| - name: Replication demo | |
| run: | | |
| P2P_ADDR=127.0.0.1:17070 HEALTH_ADDR=127.0.0.1:18080 make demo-replication | |
| compose-demo: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # v7.0.0 | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 | |
| - name: Docker Compose rehydration demo | |
| run: make demo-compose | |
| sbom: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # v7.0.0 | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 | |
| # v6.4.0 | |
| - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c | |
| with: | |
| go-version: "1.22.x" | |
| cache: true | |
| - name: CycloneDX SBOM | |
| run: | | |
| go install github.com/CycloneDX/cyclonedx-gomod/cmd/cyclonedx-gomod@v1.7.0 | |
| cyclonedx-gomod mod -json -output sbom.cdx.json . | |
| # v7.0.1 | |
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a | |
| with: | |
| name: sbom-cyclonedx | |
| path: sbom.cdx.json |