From b9168f11cf30a15eeb123dfa9bc66f820671251c Mon Sep 17 00:00:00 2001 From: Redish101 Date: Fri, 20 Sep 2024 20:23:45 +0800 Subject: [PATCH] ci: add test ci of monitor --- .github/workflows/test-monitor.yml | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/test-monitor.yml diff --git a/.github/workflows/test-monitor.yml b/.github/workflows/test-monitor.yml new file mode 100644 index 00000000..cc41b50b --- /dev/null +++ b/.github/workflows/test-monitor.yml @@ -0,0 +1,32 @@ +name: "Test Monitor" + +on: + push: + branches: + - master + - main + paths: + - 'monitor/**' + pull_request: + paths: + - 'monitor/**' + +jobs: + Tests: + runs-on: ubuntu-latest + strategy: + matrix: + go-version: + - 1.19.x + - 1.20.x + - 1.21.x + steps: + - name: Fetch Repository + uses: actions/checkout@v4 + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: '${{ matrix.go-version }}' + - name: Run Test + working-directory: ./monitor + run: go test -v -race ./...