From cf4b8fe163fc06a5ddbb02f2da8742042c70cb3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Garc=C3=ADa=20Crespo?= Date: Fri, 17 May 2024 03:56:48 +0000 Subject: [PATCH] Test example module --- .github/workflows/test.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index be14866..3644e60 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,6 +19,23 @@ jobs: uses: actions/setup-go@v5 - name: Run tests run: go test -race ./... + test-example: + name: Test example + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Check out repository + uses: actions/checkout@v4 + - name: Install Go + uses: actions/setup-go@v5 + with: + working-directory: ./example + - name: Run tests + run: go test -race ./... + working-directory: ./example mod: name: Check that `go mod tidy` is clean runs-on: ubuntu-latest