Skip to content

Commit

Permalink
github: run tests inside a fedora container
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mvo5 committed Jan 24, 2025
1 parent 8364c5e commit 4383da2
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ on: # yamllint disable-line rule:truthy
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
- uses: ./.github/actions/testdeps
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- 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
Expand Down

0 comments on commit 4383da2

Please sign in to comment.