Skip to content

Update: Add golang v1.21 to build (#28) #45

Update: Add golang v1.21 to build (#28)

Update: Add golang v1.21 to build (#28) #45

Workflow file for this run

name: build-go
on:
push:
branches:
- master
pull_request:
defaults:
run:
shell: bash
env:
GO111MODULE: on
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
- "1.20"
- "1.21"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
cache: true
- name: setup
run: |
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- name: build
run: |
make
- uses: PaloAltoNetworks/cov@3.0.0
with:
main_branch: master
cov_file: unit_coverage.out
cov_threshold: "92"
cov_mode: coverage