diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..624d683 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,37 @@ +name: Go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + name: Go Build + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + steps: + - name: Set up Go 1.x + uses: actions/setup-go@v4 + with: + go-version: 'stable' + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Install make (Windows) + if: runner.os == 'Windows' + run: choco install -y make mingw + + - name: Check + run: make check + env: + GOLANGCI_LINTERS: gosec + + - name: Upload Code Coverage + if: runner.os == 'Linux' + run: bash <(curl -s https://codecov.io/bash)