Skip to content

Merge pull request #15 from diadata-org/metrics #46

Merge pull request #15 from diadata-org/metrics

Merge pull request #15 from diadata-org/metrics #46

Workflow file for this run

name: Bridge CI
on:
push:
paths:
- 'services/bridge/**'
- '.github/workflows/bridge-ci.yml'
pull_request:
paths:
- 'services/bridge/**'
- '.github/workflows/bridge-ci.yml'
permissions:
contents: read
jobs:
bridge:
name: Lint / Vet / Test
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: services/bridge
env:
GOFLAGS: -mod=readonly
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: services/bridge/go.mod
cache: true
- name: Download dependencies
run: go mod download
- name: Lint (gofmt)
run: |
fmt_out=$(gofmt -l .)
if [[ -n "$fmt_out" ]]; then
echo "The following files need gofmt:" && echo "$fmt_out"
exit 1
fi
- name: Vet
run: go vet ./...
- name: Test
run: go test ./...