1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2025-10-04 04:31:00 +00:00
go-mtree/.github/workflows/go.yml
Aleksa Sarai d997335f30
gha: add ci job to check go mod and vendor
In order to avoid forgetting to clean this up.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2025-09-20 12:43:45 +10:00

41 lines
645 B
YAML

name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.24', '1.25']
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Go Modules
run: |
go mod tidy
git diff --exit-code
go mod vendor
git add -N vendor/
git diff --exit-code
- name: Build
run: make build
- name: Validation
run: make validation
- name: Build.Arches
run: make build.arches