From a13a3dfe2d95908901eb1108cc85d6729bd503f9 Mon Sep 17 00:00:00 2001 From: Ken Hibino Date: Sun, 22 May 2022 10:20:37 -0700 Subject: [PATCH] (ci): Update build workflow --- .github/workflows/build.yml | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index be1e5ce..77067d1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,9 +28,6 @@ jobs: - name: Build x module run: cd x && go build -v ./... && cd .. - - name: Build tools module - run: cd tools && go build -v ./... && cd .. - - name: Test core module run: go test -race -v -coverprofile=coverage.txt -covermode=atomic ./... @@ -42,3 +39,29 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 + + build-tool: + strategy: + matrix: + os: [ubuntu-latest] + go-version: [1.18.x] + runs-on: ${{ matrix.os }} + services: + redis: + image: redis + ports: + - 6379:6379 + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + + - name: Build tools module + run: cd tools && go build -v ./... && cd .. + + - name: Test tools module + run: cd tools && go test -race -v ./... && cd .. +