Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinyblargon committed Aug 15, 2024
1 parent d57d5b3 commit f5ade2f
Showing 1 changed file with 5 additions and 29 deletions.
34 changes: 5 additions & 29 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,8 @@ env:
GO_VERSION: '1.19'

jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true

verify-dependencies:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -37,7 +25,6 @@ jobs:

build:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -51,7 +38,6 @@ jobs:

vet:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -65,18 +51,21 @@ jobs:

staticcheck:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run staticcheck
run: staticcheck ./...

golint:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -92,7 +81,6 @@ jobs:

test:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -103,15 +91,3 @@ jobs:
check-latest: true
- name: Run proxmox unit tests
run: go test -race -vet=off ./proxmox/... ./internal/...

version:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
- name: Get Go version
run: go version

0 comments on commit f5ade2f

Please sign in to comment.