Skip to content

Add Generics support #43

Add Generics support

Add Generics support #43

name: Go
on:
pull_request:
branches: [ master ]
jobs:
Automated-test-and-code-analisys:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Get
run: go get -t -v ./...
- name: Get lint
run: go install golang.org/x/lint/golint@latest
- name: Get Go Cyclo
run: go install github.com/fzipp/gocyclo/cmd/gocyclo@latest
- name: Add Go bin to PATH
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Go Mod Tidy
run: go mod tidy
- name: Build
run: go build -v ./parser
- name: Test
run: go test ./parser -coverprofile=coverage.txt -covermode=atomic
- name: Coverage
run: bash <(curl -s https://codecov.io/bash)
- name: Check for Cyclomatic complexity
run: gocyclo -over 15 ./parser
- name: Check for lint problems
run: golint -set_exit_status ./parser