Skip to content

adding some virtual engines #32

adding some virtual engines

adding some virtual engines #32

Workflow file for this run

name: Lint and Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
gitleaks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Gitleaks
uses: zricethezav/[email protected]
lint:
runs-on: ubuntu-latest
container:
image: golangci/golangci-lint:v1.42.1
steps:
- uses: actions/checkout@v2
- name: Lint
run: golangci-lint run ./...
test:
runs-on: ubuntu-latest
container:
image: golang:1.23
steps:
- uses: actions/checkout@v2
- name: Set GOFLAGS to disable VCS
run: echo "GOFLAGS=-buildvcs=false" >> $GITHUB_ENV
- name: Enable Go modules
run: echo "GO111MODULE=on" >> $GITHUB_ENV
- name: Download dependencies
run: go mod download
- name: Run tests
run: |
go test -race $(go list ./... | grep -v /vendor/) -v -coverprofile=coverage.out
grep -v "mock.go" coverage.out > cover.out
- name: Generate coverage report
run: go tool cover -func=cover.out