Skip to content

Merge pull request #53 from comrade-coop/xx-development-env #55

Merge pull request #53 from comrade-coop/xx-development-env

Merge pull request #53 from comrade-coop/xx-development-env #55

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