Skip to content

feat: update test workflow #308

feat: update test workflow

feat: update test workflow #308

Workflow file for this run

on: [push, pull_request]
name: skipper-test
env:
GO_VERSION: "1.21.0"
GO_VERSION_SHORT: "1.21"
GOLANGCI_VERSION: "v1.54.0"
permissions:
contents: read
jobs:
vet:
name: "go vet"
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v4
- run: go vet $(go list ./... | grep -v /vendor/)
golangci-lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.54
test:
name: "test"
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v4
- run: go test $(go list ./... | grep -v /vendor/)