Skip to content

Merge pull request #42 from comrade-coop/spike/remote-verification #49

Merge pull request #42 from comrade-coop/spike/remote-verification

Merge pull request #42 from comrade-coop/spike/remote-verification #49

Workflow file for this run

name: Check Go code
on:
push:
paths:
- '**.go'
- '.github/workflows/check-go.yml'
jobs:
build-and-fmt:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install packages
run: sudo apt-get update && sudo apt-get install libgpgme-dev
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '^1.21.1'
- name: Dependencies
run: go mod verify
- name: Build
run: go build --tags exclude_graphdriver_btrfs,exclude_graphdriver_devicemapper -o bin/ $(find -name main.go | xargs -n 1 dirname)
shell: bash
- name: Format
run: go fmt $(find -name main.go | xargs -n 1 dirname) && git diff --exit-code
shell: bash