Skip to content

feat: AFF250 Power calculation #4517

feat: AFF250 Power calculation

feat: AFF250 Power calculation #4517

Workflow file for this run

name: Build, Test, Lint License
env:
GO_VERSION: "1.20.6"
on:
push:
branches:
- main
- 'release/**'
pull_request:
branches:
- main
- 'release/**'
jobs:
govulncheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- run: go install golang.org/x/vuln/cmd/govulncheck@latest
- run: govulncheck ./...
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -race -shuffle=on ./...
- name: Check code formatting using gofmt
uses: Jerome1337/[email protected]
license_check:
name: License check
if: '!github.event.deleted'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Install wwhrd
env:
GO111MODULE: 'off'
run: go get -u github.com/frapposelli/wwhrd
- name: go mod vendor
env:
GO111MODULE: 'on'
run: go mod vendor
- name: wwhrd check
run: wwhrd check