Add linters workflow

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2023-01-20 22:26:52 +02:00
parent b354cedf7e
commit 38b2ef5966
No known key found for this signature in database
GPG key ID: 7D073DCC2C074CB5

View file

@ -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