github: run tests inside a fedora container

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.
This commit is contained in:
Michael Vogt 2025-01-24 17:04:13 +01:00 committed by Simon de Vlieger
parent b4815631a3
commit a9bd51338e

View file

@ -14,13 +14,17 @@ on: # yamllint disable-line rule:truthy
jobs: jobs:
build: build:
runs-on: ubuntu-latest 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: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: ./.github/actions/testdeps - name: Install dependencies
- name: Set up Go run: |
uses: actions/setup-go@v5 # we have the same build-deps as the images library
with: curl -sL https://raw.githubusercontent.com/osbuild/images/refs/heads/main/test/scripts/install-dependencies | bash
go-version: 'stable'
- name: Build - name: Build
run: go build -v ./... run: go build -v ./...
- name: Test - name: Test