Update CI

This commit is contained in:
kayos@tcp.direct 2022-11-10 12:20:13 -08:00
parent 3dbf28d63f
commit 1679165b6b
Signed by: kayos
GPG Key ID: 4B841471B4BEE979
2 changed files with 19 additions and 19 deletions

View File

@ -1,19 +0,0 @@
name: ZGrab2 build action
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Check out source
uses: actions/checkout@v2
- name: Build
run: |
go get -t ./...
make

19
.github/workflows/go.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: go-vet
on:
push:
branches: [ "master", "dev" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: vet
run: go vet ./...
- name: test
run: go test -v ./...