From 0c3b04c33882f7022ddcace54617179b7d61ed7a Mon Sep 17 00:00:00 2001 From: Azuki-bar <42642269+Azuki-bar@users.noreply.github.com> Date: Sun, 12 Nov 2023 23:14:20 +0900 Subject: [PATCH] add test --- .github/workflows/test-go.yaml | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-go.yaml b/.github/workflows/test-go.yaml index a0ca101e..2e6509ff 100644 --- a/.github/workflows/test-go.yaml +++ b/.github/workflows/test-go.yaml @@ -8,16 +8,30 @@ on: - develop jobs: - golangci: - name: lint + # golangci: + # name: lint + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - uses: actions/setup-go@v4 + # with: + # go-version: '1.21' + # cache: false + # - name: golangci-lint + # uses: golangci/golangci-lint-action@v3 + # with: + # version: v1.54 + test: + name: Test runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: go-version: '1.21' - cache: false - - name: golangci-lint - uses: golangci/golangci-lint-action@v3 - with: - version: v1.54 + - name: Build State manager + run: | + go build -race backend/state-manager/cmd/main.go + - name: Test + run: | + go test -v ./...