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/Dockerfile.test b/Dockerfile.test index 967e5f7c..aa698b65 100644 --- a/Dockerfile.test +++ b/Dockerfile.test @@ -16,6 +16,7 @@ ADD . /go/src/github.com/RichardKnop/machinery # Set GO111MODULE=on variable to activate module support ENV GO111MODULE on +ENV GOFLAGS -buildvcs=false # Run integration tests as default command CMD /go/src/github.com/RichardKnop/machinery/wait-for-it.sh rabbitmq:5672 -- make test-with-coverage 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" ]