Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

feat: implement the blobstream API for Celestia node #1

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
35 changes: 35 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Go

on:
push:
branches: [ main ]
pull_request:

jobs:

build:
name: test
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: 1.22
id: go

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

- name: Get dependencies
run: |
go get -v -t -d ./...

- name: Format
run: diff -u <(echo -n) <(gofmt -d .)

- name: Test and Coverage
run: |
export PATH=$PATH:$(go env GOPATH)/bin
go test -v -coverpkg=./... -covermode=atomic -coverprofile coverage.txt ./...

27 changes: 27 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: lint
on:
pull_request:
push:
branches:
- main
jobs:
# Runs golangci-lint over the repository
# This workflow is run on every pull request and push to main
# The `golangci` job will pass without running if no *.{go, mod, sum} files have been modified.
golangci:
name: golangci-lint
runs-on: ubuntu-latest
timeout-minutes: 4
steps:
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
with:
SUFFIX_FILTER: |
.go
.mod
.sum
- uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout 10m
if: env.GIT_DIFF
Loading
Loading