Skip to content

fix(bridge): quarantine undeliverable refunds instead of crashlooping… #77

fix(bridge): quarantine undeliverable refunds instead of crashlooping…

fix(bridge): quarantine undeliverable refunds instead of crashlooping… #77

name: Lint Go bridge
on:
push:
paths:
- bridge/tfchain_bridge/**
workflow_dispatch:
jobs:
lint:
name: lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
submodules: "true"
sparse-checkout: |
clients/tfchain-client-go
bridge/tfchain_bridge
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
cache: false
id: go
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
args: --timeout 3m --verbose
working-directory: bridge/tfchain_bridge
- name: staticcheck
uses: dominikh/staticcheck-action@v1
with:
version: "latest"
working-directory: bridge/tfchain_bridge
- name: gofmt
run: |
cd bridge/tfchain_bridge
UNFORMATTED=$(gofmt -l .)
if [ -n "$UNFORMATTED" ]; then
echo "Files not formatted:"
echo "$UNFORMATTED"
gofmt -d .
exit 1
fi