Skip to content

Commit

Permalink
move to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
eternal-flame-AD committed May 22, 2023
1 parent 9999f56 commit 2929a8f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 14 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.14', '1.16', '1.18', '1.20.x' ]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- name: Install dependencies
run: |
go mod download
- name: Run Unit tests
run: |
go test -race -covermode atomic -coverprofile=covprofile ./...
- name: Install goveralls
if : ${{ matrix.go-version == '1.20.x' }}
run: go install github.com/mattn/goveralls@latest

- name: Send coverage
if : ${{ matrix.go-version == '1.20.x' }}
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=covprofile -service=github
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

0 comments on commit 2929a8f

Please sign in to comment.