From 45dd12727bf931394711572774f134fa9f569fab Mon Sep 17 00:00:00 2001 From: Viacheslav Pryimak Date: Thu, 21 Nov 2024 23:01:51 +0200 Subject: [PATCH] pipelien refactor (#164) --- .github/workflows/go.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index daf6cf3..1dc897b 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,7 +13,6 @@ jobs: matrix: os: [ ubuntu-latest, macos-latest, windows-latest ] go-version: [ 1.21.x, oldstable, stable ] - runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -21,16 +20,20 @@ jobs: uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - - - name: Get dependencies run: | go mod download go get github.com/go-pg/pg/v9 - - name: Test run: go test -race -cover -coverprofile=coverage -covermode=atomic ./... + - name: Build + run: go build -v . + coverage: + name: Coverage + runs-on: ubuntu-latest + needs: build + steps: - name: Coverage uses: codecov/codecov-action@v3 with: @@ -38,6 +41,3 @@ jobs: flags: unittests fail_ci_if_error: false verbose: true - - - name: Build - run: go build -v .