Add linters workflow
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
b354cedf7e
commit
38b2ef5966
1 changed files with 24 additions and 1 deletions
25
.github/workflows/go-tests.yml
vendored
25
.github/workflows/go-tests.yml
vendored
|
|
@ -9,9 +9,32 @@ on:
|
|||
- main
|
||||
|
||||
jobs:
|
||||
linters:
|
||||
name: Linters
|
||||
runs-on: ubuntu-20.04
|
||||
timeout-minutes: 10
|
||||
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libbtrfs-dev
|
||||
|
||||
- uses: actions/setup-go@v3
|
||||
- uses: actions/checkout@v3
|
||||
- uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: v1.49.0
|
||||
skip-cache: true
|
||||
args: --timeout=8m --build-tags testing
|
||||
- name: Verify go vendor and go modules
|
||||
run: |
|
||||
sudo apt-get install -y jq
|
||||
make verify-vendor
|
||||
|
||||
go-tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
needs: [linters]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue