Skip to content

refactor: use os.OpenInRoot to read go.mod files #666

refactor: use os.OpenInRoot to read go.mod files

refactor: use os.OpenInRoot to read go.mod files #666

Workflow file for this run

---
name: Build
on:
push:
branches: [main, release-*]
pull_request:
jobs:
build:
name: Build and test on go ${{ matrix.go_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
go_version: [stable, oldstable]
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- name: Check out code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
fetch-depth: 0
- name: Set up Go ${{ matrix.go_version }}
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417
with:
go-version: ${{ matrix.go_version }}
- name: Get dependencies
run: go mod download
- name: Build
run: make build
- name: Test
run: make test