From 93348d67e0293c0de86b846f23b8be4a8895874d Mon Sep 17 00:00:00 2001 From: Marat Reymers Date: Wed, 22 Jun 2022 21:55:47 +0300 Subject: [PATCH] Split CI to separate jobs --- .github/workflows/ci.yaml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2bda51a..6024e92 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,26 +19,36 @@ concurrency: cancel-in-progress: true jobs: - ci: - name: CI + test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 with: go-version: "1.x" - - name: Debug with tmate SSH if enabled if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_ssh }} uses: mxschmitt/action-tmate@v3 - - run: make test-cover - - uses: codecov/codecov-action@v3 + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: "1.x" - uses: golangci/golangci-lint-action@v3 with: version: "v1.46.2" + check-tidy: + name: go mod tidy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: "1.x" - run: make check-tidy