Skip to content

feat: configure replication count and insecure DID resolution (#400) #645

feat: configure replication count and insecure DID resolution (#400)

feat: configure replication count and insecure DID resolution (#400) #645

Workflow file for this run

name: Check
on:
push:
branches: ["main"]
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "./go.mod"
- name: Run go mod tidy
run: go mod tidy --diff
- name: Run go vet
if: success() || failure()
run: go vet ./...
- name: Run staticcheck
if: success() || failure()
uses: dominikh/staticcheck-action@v1.4.0
with:
install-go: false
- name: Run gofmt
if: success() || failure()
run: |
out=$(gofmt -s -l .)
if [[ -n "$out" ]]; then
echo $out | tr " " "\n" | awk '{print "::error file=" $0 ",line=0,col=0::File " $0 " is not gofmt-ed."}'
exit 1
fi