Skip to content

get ratio from RPC

get ratio from RPC #3

Workflow file for this run

name: Go Workflow
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-and-lint:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.22.x"
- name: Run tests
run: go test ./...
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
cleanup:
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Delete merged branch
uses: dawidd6/action-delete-branch@v3