Add a GitHub workflow for Golang

This commit is contained in:
Joakim Hellsén 2024-02-05 17:28:23 +01:00
commit 7b979f4974
2 changed files with 37 additions and 0 deletions

36
.github/go.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: Go
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
check-latest: true
go-version: stable
- name: Install dependencies
run: go get .
- name: Test
run: go test -v
- name: Lint
run: go vet .
- name: Fmt
run: go fmt .
- name: Build
run: go build -v -ldflags="-s -w"

View file

@ -30,6 +30,7 @@
"homerouter", "homerouter",
"hotspot", "hotspot",
"huaweimobilewifi", "huaweimobilewifi",
"ldflags",
"leftright", "leftright",
"levelname", "levelname",
"listparser", "listparser",