Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,28 @@
name: build and vet

on:
push:
pull_request:
branches_ignore: []

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.22', '1.23', '1.24', '1.25', '1.26']
go: ['1.23', '1.24', '1.25', '1.26', '1.27']

name: build and vet
steps:

- uses: actions/checkout@v2
with:
path: go/src/github.com/vbatts/tar-split

- uses: actions/setup-go@v4
- uses: actions/checkout@v7.0.1
- uses: actions/setup-go@v7.0.0
with:
go-version: ${{ matrix.go }}

- name: vet and build
env:
GOPATH: /home/runner/work/tar-split/tar-split/go
run: |
set -x
export PATH=$GOPATH/bin:$PATH
cd go/src/github.com/vbatts/tar-split
go run mage.go -v vet build test
16 changes: 6 additions & 10 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: lint

on:
push:
pull_request:
branches_ignore: []

permissions:
contents: read

jobs:
lint:
Expand All @@ -14,19 +17,12 @@ jobs:
name: Linting
steps:

- uses: actions/checkout@v2
with:
path: go/src/github.com/vbatts/tar-split

- uses: actions/setup-go@v4
- uses: actions/checkout@v7.0.1
- uses: actions/setup-go@v7.0.0
with:
go-version: ${{ matrix.go }}

- name: lint
env:
GOPATH: /home/runner/work/tar-split/tar-split/go
run: |
set -x
export PATH=$GOPATH/bin:$PATH
cd go/src/github.com/vbatts/tar-split
go run mage.go -v lint
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vbatts/tar-split

go 1.22.0
go 1.23

require (
github.com/fatih/color v1.15.0
Expand Down