Skip to content

Commit

Permalink
chore: use git actions instead of travis
Browse files Browse the repository at this point in the history
  • Loading branch information
fefit committed Jan 10, 2023
1 parent 5e9d9c1 commit 9c5d67a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test-and-cov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test and coverage
on:
- push
jobs:
test:
strategy:
matrix:
go-version: [1.14.x, 1.18.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
# setup golang
- name: Install golang
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
# checkout repo
- name: Checkout repo
uses: actions/checkout@v3
# run tests
- name: Run tests
run: go test ./...
# build coverage
- name: Build coverage
run: ./go_tests.sh && bash <(curl -s https://codecov.io/bash)

0 comments on commit 9c5d67a

Please sign in to comment.