changes to add project information with cluster lookup #185
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: Go | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
# Getting go version from the go.mod file | |
go-version-file: 'go.mod' | |
- run: go version | |
- name: Check code format | |
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi | |
- name: Test all | |
run: go test -v ./... | |
# golangci: | |
# strategy: | |
# matrix: | |
# os: [ubuntu-latest] | |
# runs-on: ${{ matrix.os }} | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - name: Set up Go | |
# uses: actions/setup-go@v4 | |
# with: | |
# # Getting go version from the go.mod file | |
# go-version-file: 'go.mod' | |
# - run: go version | |
# - name: golangci-lint | |
# uses: golangci/golangci-lint-action@v2 | |
# with: | |
# version: v1.44.2 |