Skip to content

Fixing recursion issue in Python too #30

Fixing recursion issue in Python too

Fixing recursion issue in Python too #30

Workflow file for this run

name: Go
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install System Dependencies
run: |
sudo apt-get update && sudo apt-get install -y binutils build-essential jq make
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.26.0'
cache-dependency-path: golang/go.sum
- name: Check Formatting
run: |
if [ -n "$(gofmt -l .)" ]; then
echo "Go code is not formatted:"
gofmt -d .
exit 1
fi
working-directory: ./golang
- name: GolangCI-Lint
uses: golangci/golangci-lint-action@v9
with:
version: latest
working-directory: ./golang
env:
GOFLAGS: "-buildvcs=false"
- name: Run Gosec Security Scanner
run: |
go install github.com/securego/gosec/v2/cmd/gosec@latest
gosec ./...
working-directory: ./golang
env:
GOTOOLCHAIN: auto
- name: Run govulncheck
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
working-directory: ./golang
- name: Build
run: make build
working-directory: ./golang
- name: Test
run: go test -v -race -coverprofile=coverage.out ./...
working-directory: ./golang
- name: Run Integration Test
run: bash ./test-dummy.sh