From 1679165b6b35f4753c2c967bddc73b4de023e530 Mon Sep 17 00:00:00 2001 From: "kayos@tcp.direct" Date: Thu, 10 Nov 2022 12:20:13 -0800 Subject: [PATCH] Update CI --- .github/workflows/build.yml | 19 ------------------- .github/workflows/go.yml | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 19 deletions(-) delete mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index de72f08..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..fa5e803 --- /dev/null +++ b/.github/workflows/go.yml @@ -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 ./...