Skip to content

refactor: allocate types.VM as pointer directly instead of value+addr… #373

refactor: allocate types.VM as pointer directly instead of value+addr…

refactor: allocate types.VM as pointer directly instead of value+addr… #373

Workflow file for this run

name: test
on:
push:
tags:
- '!v*'
branches:
- '*'
paths-ignore:
- 'os-image/**'
pull_request:
paths-ignore:
- 'os-image/**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- name: Download dependencies
run: go mod download
- name: Vet
run: go vet ./...
- name: Test with coverage
run: go test -race -timeout 120s -count=1 -cover -coverprofile=coverage.out ./...
- name: Upload coverage artifact
continue-on-error: true
uses: actions/upload-artifact@v6
with:
name: coverage
path: coverage.out
retention-days: 7
- name: Build binary
run: CGO_ENABLED=0 go build -o cocoon .