debian-forge-cli/.github/workflows/go.yaml
dependabot[bot] ecbf9f65c7 build(deps): bump actions/checkout from 3 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-18 21:41:32 +00:00

33 lines
1 KiB
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: # yamllint disable-line rule:truthy
push:
branches: ["main"]
pull_request:
branches: ["main"]
merge_group:
types: ["checks_requested"]
jobs:
build:
runs-on: ubuntu-latest
container: registry.fedoraproject.org/fedora:41
env:
# workaround for expired cert at source of indirect dependency
# (go.opencensus.io/trace)
GOPROXY: "https://proxy.golang.org,direct"
steps:
- uses: actions/checkout@v5
- name: Install dependencies
run: |
# we have the same build-deps as the images library
curl -sL https://raw.githubusercontent.com/osbuild/images/refs/heads/main/test/scripts/install-dependencies | bash
# we also need createrepo_c
dnf install -y createrepo_c
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...