Skip to content

Commit

Permalink
Migrate to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
auyer committed Jul 28, 2021
1 parent a39bbff commit a0bc020
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .circleci/config.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Unit

on:
workflow_dispatch:
push:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '^1.16', '~1.12' ]
name: Go ${{ matrix.go }} sample
steps:
- name: Checkout repo
uses: actions/checkout@v2

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

- name: Run Race tests
run: |
go test --race
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Install Go
uses: actions/setup-go@v2
with:
go-version: "^1.16"

- name: Run tests with Coverage report
run: |
go test -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage report
uses: codecov/codecov-action@v2
with:
file: ./coverage.txt

0 comments on commit a0bc020

Please sign in to comment.