Deploy and invoke interfaces #1308
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: Code quality checks | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
GOOS: linux | |
GO111MODULE: on | |
jobs: | |
resolve-modules: | |
name: Resolve Modules | |
runs-on: ubuntu-20.04 | |
outputs: | |
matrix: ${{ steps.set-matrix.outputs.matrix }} | |
steps: | |
- name: Checkout Sources | |
uses: actions/checkout@v3 | |
- id: set-matrix | |
run: ./utils/golangci-lint/resolve-modules.sh | |
golangci: | |
name: GolangCI Lint | |
needs: resolve-modules | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: { dir: ['cmd', 'pkg', 'tools/plotter'] } | |
fail-fast: false | |
steps: | |
- name: Setup Go 1.22 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
- name: Install dependencies for cgo | |
run: sudo apt update && sudo apt install libsnmp-dev | |
- name: Checkout code into go module directory | |
uses: actions/checkout@v3 | |
- name: Lint with golangci-lint | |
uses: golangci/[email protected] | |
with: | |
working-directory: ${{ matrix.dir }} | |
args: --timeout 5m |