Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ build:
go build -o $(BIN) \
-ldflags "-s -w" cmd/main.go

vendor:
go mod vendor

vet:
go vet ./...

Expand Down Expand Up @@ -51,6 +54,9 @@ trivy: docker
clean:
go clean

ci_clean: clean
docker logout

install: build
./tools/install.sh

Expand Down