Running the tests inside fedora means we get much more meaningful results as we will have all the required packaes and there will be no need to skip tests.
31 lines
965 B
YAML
31 lines
965 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: # 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@v4
|
|
- 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
|
|
- name: Build
|
|
run: go build -v ./...
|
|
- name: Test
|
|
run: go test -v ./...
|