debian-forge-cli/.github/workflows/go.yml
Michael Vogt 56f9c6969c workflow: update to work with the images dependencies
This commit updates the GH workflow file to install the required
dependencies to build the images library.
2024-11-28 09:53:08 +00:00

35 lines
770 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 libgpgme devel package
run: sudo apt install -y libgpgme-dev libbtrfs-dev libdevmapper-dev podman
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...