feat: support gRPC endpoints in core #3456
This file contains 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: Test Coverage | |
on: | |
pull_request: | |
push: | |
branches: | |
- v0.34.x-celestia | |
jobs: | |
build-linux: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
goarch: ["arm", "amd64"] | |
timeout-minutes: 5 | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.23.1" | |
- uses: actions/checkout@v3 | |
- uses: technote-space/get-diff-action@v6 | |
with: | |
PATTERNS: | | |
**/**.go | |
go.mod | |
go.sum | |
- name: install | |
run: GOOS=linux GOARCH=${{ matrix.goarch }} make build | |
if: env.GIT_DIFF | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.23.1" | |
- uses: actions/checkout@v3 | |
- uses: technote-space/get-diff-action@v6 | |
with: | |
PATTERNS: | | |
**/**.go | |
go.mod | |
go.sum | |
- name: test & coverage report creation | |
run: go test ./... -mod=readonly -timeout 15m -race -coverprofile=profile.out -covermode=atomic | |
if: env.GIT_DIFF | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "${{ github.sha }}-coverage" | |
path: ./profile.out | |
upload-coverage-report: | |
runs-on: ubuntu-latest | |
needs: tests | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: technote-space/get-diff-action@v6 | |
with: | |
PATTERNS: | | |
**/**.go | |
go.mod | |
go.sum | |
- uses: actions/[email protected] | |
with: | |
name: "${{ github.sha }}-coverage" | |
if: env.GIT_DIFF | |
- run: | | |
cat ./profile.out | grep -v "mode: atomic" >> coverage.txt | |
if: env.GIT_DIFF | |
- uses: codecov/codecov-action@v4 | |
with: | |
file: ./coverage.txt | |
if: env.GIT_DIFF |