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