From 3f60c636a43214b3b379f4bf6a629a95ee1f5018 Mon Sep 17 00:00:00 2001 From: Zeke Gabrielse Date: Fri, 4 Oct 2024 15:00:55 -0500 Subject: [PATCH] add ci --- .github/FUNDING.yml | 1 + .github/workflows/test.yml | 24 ++++++++++++++++++++++++ README.md | 2 ++ 3 files changed, 27 insertions(+) create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..e6d21fb --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: ezekg \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..c4bc794 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: CI +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install + uses: actions/setup-go@v4 + with: + go-version: '1.23' + - name: Build + run: go build -o /dev/null main.go + - name: Vet + run: go vet ./... + - name: Fmt + run: test -z "$(go fmt ./...)" diff --git a/README.md b/README.md index 37a77e6..61a9d91 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Keygen CLI +[![CI](https://github.com/keygen-sh/keygen-cli/actions/workflows/test.yml/badge.svg)](https://github.com/keygen-sh/keygen-cli/actions) + CLI to interact with keygen.sh. ## Installation