debian-forge-cli/.github/workflows/go.yml
Michael Vogt 8ae5b98d9d HACKING.md: add basic documentation for the development
This commit adds a basic HACKING.md that explains the bare mimimum
to get started, including `go test -short` to skip the expensive
tests.

Contains also a drive-by rename of the test dependency install
for the GH action.
2024-12-16 07:54:45 +00:00

35 lines
765 B
YAML

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Apt update
run: sudo apt update
# This is needed for the container resolver dependencies
- name: Install test dependencies
run: sudo apt install -y libgpgme-dev libbtrfs-dev libdevmapper-dev podman
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...