From 199f266e1874fcba425db2133dbb4f65e5273002 Mon Sep 17 00:00:00 2001 From: Manuel Wudka-Robles Date: Wed, 4 Dec 2024 15:27:51 -0800 Subject: [PATCH] Convert travis CI to GH actions --- .github/workflows/go.yml | 15 +++++++++++++++ .travis.yml | 17 ----------------- Makefile | 4 ++-- 3 files changed, 17 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/go.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 00000000..e389b61b --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,15 @@ +name: Go CI + +on: + push: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Run CI + run: make ci diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 246ed887..00000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ ---- -language: go - -go: - - 1.13.x - -env: - - GO111MODULE=on - -services: - - docker - -script: - - make ci - -after_success: - - bash <(curl -s https://codecov.io/bash) diff --git a/Makefile b/Makefile index 844e3067..bef00721 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ golint: test: TEST_FAILED= ; \ for pkg in ${PACKAGES}; do \ - go test -v -timeout 20m $$pkg || TEST_FAILED=1; \ + go test -v -timeout 20m -buildvcs=false $$pkg || TEST_FAILED=1; \ done; \ [ -z "$$TEST_FAILED" ] @@ -28,7 +28,7 @@ test-with-coverage: echo "mode: set" > coverage-all.out TEST_FAILED= ; \ for pkg in ${PACKAGES}; do \ - go test -v -timeout 20m -coverprofile=coverage.out -covermode=set $$pkg || TEST_FAILED=1; \ + go test -v -timeout 20m -buildvcs=false -coverprofile=coverage.out -covermode=set $$pkg || TEST_FAILED=1; \ tail -n +2 coverage.out >> coverage-all.out; \ done; \ [ -z "$$TEST_FAILED" ]