From 9b266440c87db0c257d90a0c444763e8d5661d12 Mon Sep 17 00:00:00 2001 From: Priyesh Padmavilasom Date: Tue, 5 Aug 2025 22:22:19 +0000 Subject: [PATCH] add ci job --- .github/workflows/ci.yml | 15 +++++++++++++++ Makefile | 6 ++++++ 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..37c77ac --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,15 @@ +name: tcli ci +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Run sanity tests + run: make sanity + + - name: Cleanup + if: always() + run: make ci_clean diff --git a/Makefile b/Makefile index 648126f..c746377 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,9 @@ build: go build -o $(BIN) \ -ldflags "-s -w" cmd/main.go +vendor: + go mod vendor + vet: go vet ./... @@ -51,6 +54,9 @@ trivy: docker clean: go clean +ci_clean: clean + docker logout + install: build ./tools/install.sh