Add builds to public vcr repo (#268) #424
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Checks | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
Golangci-Lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.23" | |
- name: Install dependencies | |
run: | | |
go version | |
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0 | |
- name: Run Lint | |
run: | | |
golangci-lint run driver/... | |
Go-Fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.23" | |
- name: Run fmt | |
run: | | |
gofmt_files=$(gofmt -l driver/.) | |
if [[ -n ${gofmt_files} ]]; then | |
echo 'gofmt needs running on the following files:' | |
echo "${gofmt_files}" | |
exit 1 | |
fi | |
exit 0 |