Skip to content

Commit

Permalink
feat: update test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjarosch committed Mar 6, 2024
1 parent fd7e2f6 commit da848c6
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 33 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/golangci-lint.yaml

This file was deleted.

52 changes: 39 additions & 13 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,44 @@
on: [push, pull_request]
name: Test
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:
strategy:
matrix:
go-version: [1.20.x, 1.21.x]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
name: "test"
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/[email protected]
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout
uses: actions/checkout@v4
- name: Run tests
uses: robherley/[email protected]
go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v4
- run: go test $(go list ./... | grep -v /vendor/)

0 comments on commit da848c6

Please sign in to comment.