Files
paralus/.github/workflows/go.yml
Akshay Gaikwad 32f72fb48c Add formatter and linter in Go CI checks
Commented the format and lint steps because there are many old source
code files that need to be fix. It is not a priority at this time.
2022-03-21 12:25:58 +05:30

49 lines
972 B
YAML

name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
strategy:
matrix:
go-version: [1.17.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
# - name: Format
# run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
- name: Test all
run: go test -v ./...
# golangci:
# strategy:
# matrix:
# go-version: [1.17.x]
# os: [ubuntu-latest]
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v2
# - name: Set up Go
# uses: actions/setup-go@v2
# with:
# go-version: ${{ matrix.go-version }}
# - name: golangci-lint
# uses: golangci/golangci-lint-action@v2
# with:
# version: v1.44.2