Skip to content

Commit

Permalink
Move back to ubuntu to enable go caching
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola committed Jun 6, 2024
1 parent efe8edd commit 4761615
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/unittest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,20 @@ jobs:
# Use self-hosted runners to reduce load on limited public runners
name: Unit Tests On Self-Hosted Runner
if: github.repository == 'rancher/rke2'
container: registry.suse.com/bci/golang:1.22
container: ubuntu:22.04
runs-on: org-${{ github.repository_owner_id }}-amd64-k8s
timeout-minutes: 20
steps:
- name: Install git
run: apt-get update && apt-get install -y git
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
# - name: Install Go
# uses: actions/setup-go@v5
# with:
# go-version-file: 'go.mod'
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Run Unit Tests
run: |
GONOPROXY=* GONOSUMDB=* go test -coverpkg=./... -coverprofile=coverage.out ./pkg/... -run Unit
Expand Down

0 comments on commit 4761615

Please sign in to comment.