mirror of
https://github.com/vbatts/go-mtree.git
synced 2025-07-12 09:49:10 +00:00
*.go: update to golangci-lint, and fix everything
install tools in the workflow actions Also switch away from deprecated ioutil Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
e7a79ae8a7
commit
42b655d8ee
19 changed files with 101 additions and 78 deletions
4
.github/workflows/go.yml
vendored
4
.github/workflows/go.yml
vendored
|
@ -22,9 +22,9 @@ jobs:
|
|||
go-version: ${{ matrix.go }}
|
||||
|
||||
- name: Build
|
||||
run: make
|
||||
run: make build
|
||||
|
||||
- name: Test
|
||||
- name: Validation
|
||||
run: make validation
|
||||
|
||||
- name: Build.Arches
|
||||
|
|
28
.github/workflows/validation.yml
vendored
Normal file
28
.github/workflows/validation.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: lint
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
go: ['1.21']
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
|
||||
- name: Install tools
|
||||
run: make install.tools
|
||||
|
||||
- name: Test
|
||||
run: make lint
|
Loading…
Add table
Add a link
Reference in a new issue