diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 2561a16..a723431 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 65c7ae9..b821d0c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,8 +1,11 @@ name: lint on: + push: pull_request: - branches_ignore: [] + +permissions: + contents: read jobs: lint: @@ -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 diff --git a/go.mod b/go.mod index 1b5292c..a53820f 100644 --- a/go.mod +++ b/go.mod @@ -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