Skip to content

Merge pull request #728 from stuggi/remove-kolla #5752

Merge pull request #728 from stuggi/remove-kolla

Merge pull request #728 from stuggi/remove-kolla #5752

name: Golang lint, vet and unit test pipeline
on: [push, pull_request]
jobs:
test:
name: github (govet, golint and gotest)
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
with:
go-version: 1.26.x
- name: Checkout project code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Run govet.sh
run: make govet
- name: Run golint.sh
run: make golint
- name: Run gotest.sh
run: make gotest
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
with:
go-version: 1.26.x
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
- name: skip branch check
run: echo "SKIP=no-commit-to-branch" >> "$GITHUB_ENV"
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
with:
extra_args: --all-files --show-diff-on-failure --verbose