Files
paralus/.github/workflows/go.yml
2022-03-24 12:42:59 +05:30

53 lines
1.1 KiB
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
# Tests need to be fixed. https://github.com/RafayLabs/rcloud-base/issues/46
# - name: Test all
# run: go test -v ./...
- name: Test 'service' package
run: go test -v ./pkg/service
# 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