Skip to content

bump go version and se gotip #460

bump go version and se gotip

bump go version and se gotip #460

Workflow file for this run

name: test
on:
pull_request:
branches:
- "*"
push:
branches:
- "*"
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go_version:
- '1.21'
- '1.22'
- '1.23'
- tip
name: Test with ${{ matrix.go_version }}
steps:
- uses: actions/checkout@v2
- name: Install Go ${{ matrix.go_version }}
if: ${{ matrix.go_version != 'tip' }}
uses: actions/setup-go@master
with:
go-version: ${{ matrix.go_version }}
check-latest: true
- name: Install Go ${{ matrix.go_version }}
if: ${{ matrix.go_version == 'tip' }}
run: |
go install golang.org/dl/gotip@latest
gotip download
- name: Vet and test
if: ${{ matrix.go_version != 'tip' }}
run: |
go version
go vet ./...
go test ./...
else:

Check failure on line 40 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 40, Col: 9): Unexpected value 'else' .github/workflows/test.yml (Line: 41, Col: 9): 'run' is already defined
run: |
gotip version
gotip vet ./...
gotip test ./...
golangci:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@master
with:
go-version: '1.23'
check-latest: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
skip-go-installation: true
args: "--config .golangci.yml"