From db693ab76abfbddddf18b22a0051c8140ca16cf8 Mon Sep 17 00:00:00 2001 From: Manuel Vogel Date: Wed, 20 Oct 2021 14:19:34 +0200 Subject: [PATCH] chore(ci): add matrix test (#42) * chore(ci): add matrix test * fix(makefile): add race flag for test * chore(ci): fix test yaml indentation * chore(ci): remove windows build env --- .github/workflows/test.yml | 8 ++++++-- Makefile | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e4db9e1..e8f9e4d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -26,4 +30,4 @@ jobs: run: | chmod 765 test/filemode.txt - name: Run tests - run: make test \ No newline at end of file + run: go test -v -race -cover \ No newline at end of file diff --git a/Makefile b/Makefile index 0f3cf54..5417cef 100644 --- a/Makefile +++ b/Makefile @@ -14,4 +14,4 @@ clean: rm -rf build test: - go test -cover \ No newline at end of file + go test -v -race -cover \ No newline at end of file