Skip to content

Commit

Permalink
chore(ci): add matrix test (#42)
Browse files Browse the repository at this point in the history
* chore(ci): add matrix test
* fix(makefile): add race flag for test
* chore(ci): fix test yaml indentation
* chore(ci): remove windows build env
  • Loading branch information
mavogel authored Oct 20, 2021
1 parent 844deba commit db693ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ on:
- 'README.md'
jobs:
unit:
runs-on: ubuntu-20.04
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -26,4 +30,4 @@ jobs:
run: |
chmod 765 test/filemode.txt
- name: Run tests
run: make test
run: go test -v -race -cover
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ clean:
rm -rf build

test:
go test -cover
go test -v -race -cover

0 comments on commit db693ab

Please sign in to comment.