Skip to content

fix(vm): unable to clone as non-root due to hook_script #1961

fix(vm): unable to clone as non-root due to hook_script

fix(vm): unable to clone as non-root due to hook_script #1961

Workflow file for this run

name: Tests
on:
pull_request: {}
push:
branches:
- main
- "release/**"
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 #v2.2.1
id: filter
with:
filters: |
go:
- '**/*.go'
- name: Set up Go
if: steps.filter.outputs.go == 'true'
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Get dependencies
if: steps.filter.outputs.go == 'true'
run: go mod download
- name: Build
if: steps.filter.outputs.go == 'true'
run: go vet . && go build -v .
test:
name: Unit Tests
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 #v2.2.1
id: filter
with:
filters: |
go:
- '**/*.go'
- name: Set up Go
if: steps.filter.outputs.go == 'true'
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Get dependencies
if: steps.filter.outputs.go == 'true'
run: go mod download
- name: Unit tests
if: steps.filter.outputs.go == 'true'
timeout-minutes: 10
run: go test -v -cover ./...