Skip to content

chore: Update Docker configuration, API, and liquidity handling #28

chore: Update Docker configuration, API, and liquidity handling

chore: Update Docker configuration, API, and liquidity handling #28

Workflow file for this run

name: Check
on:
workflow_call:
push:
branches:
- main
pull_request:
permissions:
# Required: allow read access to the content for analysis.
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read
# Optional: Allow write access to checks to allow the action to annotate code in the PR.
checks: write
env:
GO_VERSION: 1.25.6
GOLANGCI_LINT_VERSION: latest
jobs:
test:
runs-on: ubuntu-latest
name: Test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Install abigen
run: go install github.com/ethereum/go-ethereum/cmd/abigen@latest
- name: Generate contracts
run: export PATH=$PATH:$(go env GOPATH)/bin && make abigen
- name: Run go test
run: |
make test
vulncheck:
runs-on: ubuntu-latest
name: Check for vulnerabilities
steps:
- id: govulncheck
uses: golang/govulncheck-action@v1
with:
go-version-input: ${{ env.GO_VERSION }}
go-package: ./...
commit-check:
runs-on: ubuntu-latest
name: Check conventional commit compliance
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# pick the pr HEAD instead of the merge commit
ref: ${{ github.event.pull_request.head.sha }}
- name: Conventional commit check
uses: cocogitto/cocogitto-action@v3
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Install abigen
run: go install github.com/ethereum/go-ethereum/cmd/abigen@latest
- name: Generate contracts
run: export PATH=$PATH:$(go env GOPATH)/bin && make abigen
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}