Skip to content

chore(deps): bump github.com/docker/docker from 20.10.10+incompatible to 24.0.9+incompatible #44

chore(deps): bump github.com/docker/docker from 20.10.10+incompatible to 24.0.9+incompatible

chore(deps): bump github.com/docker/docker from 20.10.10+incompatible to 24.0.9+incompatible #44

Workflow file for this run

name: Code Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
golang-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: setup go
uses: actions/setup-go@v1
with:
go-version: '1.16'
- name: Download golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.39.0
- name: Run golangci-lint
run: |
export PATH=$PATH:$(go env GOPATH)/bin/
make lint
- name: Run gofmt
working-directory: ./
run: |
diffs=`gofmt -l .`
if [[ -n $diffs ]]; then
echo "Files are not formatted by gofmt:"
echo $diffs
exit 1
fi
- name: Run goimports
working-directory: ./
run: |
go get golang.org/x/tools/cmd/goimports
export PATH=$PATH:$(go env GOPATH)/bin/
diffs=`goimports -d .`
if [[ -n $diffs ]]; then
echo "Files are not formatted by goimport:"
echo $diffs
exit 1
fi