Skip to content

Commit

Permalink
Update CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMwita committed Mar 23, 2024
1 parent d4244ac commit 9683e35
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: Continuous Integration

on:
pull_request:
branches: [main]
branches: [master]
push:
branches: [main]
branches: [master]

jobs:
build-across-platforms:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, windows-latest]

runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -61,10 +61,16 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Run tests
- name: Run Unit tests
run: |
make test
go test -race -covermode atomic -coverprofile=covprofile ./...
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=covprofile -service=github




0 comments on commit 9683e35

Please sign in to comment.