From 41b6a1b2139bda1de36b4725d60715c8143c121a Mon Sep 17 00:00:00 2001 From: Yusuke Kuoka Date: Wed, 23 Sep 2020 22:55:11 +0900 Subject: [PATCH] Split build gh action job for faster completion --- .github/workflows/ci.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4423acb..0dd0851 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ name: Go on: [push] jobs: - build: + test: runs-on: ubuntu-latest strategy: matrix: @@ -16,8 +16,6 @@ jobs: version: ${{ matrix.go }} - name: Run go mod download run: go mod download - - name: Run golangci-lint - run: make lint - name: Install SSH key uses: shimataro/ssh-key-action@v2 with: @@ -29,3 +27,20 @@ jobs: sudo apt-get update -y sudo apt-get install ruby -y make test smoke + lint: + runs-on: ubuntu-latest + strategy: + matrix: + go: + - 1.13.4 + name: Go ${{ matrix.go }} build + steps: + - uses: actions/checkout@master + - name: Setup Go + uses: actions/setup-go@v1 + with: + version: ${{ matrix.go }} + - name: Run go mod download + run: go mod download + - name: Run golangci-lint + run: make lint