ci: run jobs in parralel #277
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
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: '1.19' | |
check-latest: true | |
verify-dependencies: | |
runs-on: ubuntu-latest | |
needs: setup | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Verify dependencies | |
run: go mod verify | |
build: | |
runs-on: ubuntu-latest | |
needs: setup | |
steps: | |
- name: Build | |
run: go build -v ./... | |
vet: | |
runs-on: ubuntu-latest | |
needs: setup | |
steps: | |
- name: Run go vet | |
run: go vet ./... | |
staticcheck: | |
runs-on: ubuntu-latest | |
needs: setup | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- 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 | |
- name: Install golint | |
run: go install golang.org/x/lint/golint@latest | |
- name: Run golint | |
run: golint ./... | |
test: | |
runs-on: ubuntu-latest | |
needs: setup | |
steps: | |
- name: Run proxmox unit tests | |
run: go test -race -vet=off ./proxmox/... ./internal/... |