Skip to content

Commit

Permalink
Convert travis CI to GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mwudka committed Dec 5, 2024
1 parent 8493b95 commit 6fcd0d8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

Expand All @@ -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" ]
Expand Down

0 comments on commit 6fcd0d8

Please sign in to comment.