build(deps): bump github.com/docker/docker #107
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: Build and Test | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
push: | |
branches: | |
- main | |
jobs: | |
report: | |
name: Report | |
runs-on: ubuntu-latest | |
steps: | |
- name: ref | |
run: echo ${{ github.ref }} | |
- name: event_name | |
run: echo ${{ github.event_name }} | |
build: | |
name: Build | |
strategy: | |
matrix: | |
target: [ | |
{arch: amd64, os: linux}, {arch: arm64, os: linux}, | |
] | |
env: | |
GOOS: ${{ matrix.target.os }} | |
GOARCH: ${{ matrix.target.arch }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.20 | |
- name: vet | |
run: go vet ./... | |
- name: build | |
run: go build ./... | |
- name: lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.55.2 | |
skip-pkg-cache: true | |
- name: test # requires building binaries and running them; sufficient to run on native arch | |
if: matrix.target.arch == 'amd64' && matrix.target.os == 'linux' | |
run: go test ./... -race |