Skip to content

Commit

Permalink
github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Gomenyuk committed Jan 10, 2025
1 parent c4bc426 commit 4d3f5f4
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Pull Request

on:
pull_request:
branches:
- '**'

jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'
- name: Build
env:
CGO_ENABLED: 0
run: go build -ldflags="-extldflags=-static" -o ./bin/shuttle ./cmd/

lint:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.23'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.62.2
args: --timeout 15m --config .golangci.yaml
skip-cache: true
2 changes: 1 addition & 1 deletion internal/server/handlers/dto/ethtxs.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func ToEthTxs(blockTx *api.BlockWithTxs) ([]Tx, error) {
}

func ToEthTxReceipt(block *api.BlockWithTxs, tx *api.TxInfo) (*TxReceipt, error) {
num, err := strconv.ParseInt(block.Block.Header.Height, 10, 64)
num, err := strconv.ParseUint(block.Block.Header.Height, 10, 64)
if err != nil {
return nil, fmt.Errorf("height %s convert: %w", block.Block.Header.Height, err)
}
Expand Down

0 comments on commit 4d3f5f4

Please sign in to comment.