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 121d465
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 19 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Go CI

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest

env:
GO111MODULE: on

steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.13.x'

- name: Run CI
run: make ci
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

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 121d465

Please sign in to comment.