From a1117770415a6f56833e1040da1b834cdf65cc19 Mon Sep 17 00:00:00 2001 From: Cosmin Cojocar Date: Mon, 30 Mar 2020 13:06:29 +0200 Subject: [PATCH] Change the GitHub workflow to use only the latest Go version Signed-off-by: Cosmin Cojocar --- .github/workflows/main.yml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ad76e64..556dc73 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,35 +8,28 @@ on: - master jobs: tests: - strategy: - matrix: - go-version: [go1.12.x, go1.13.x, go1.14.x] runs-on: ubuntu-latest env: GO111MODULE: on steps: - - name: Install Go - uses: actions/setup-go@v1 - with: - go-version: ${{ matrix.go-version }} - name: Checkout Source uses: actions/checkout@v2 - name: Run Tests - run: make test + uses: cedrickring/golang-action@1.5.1 + with: + args: make test coverage: needs: tests runs-on: ubuntu-latest env: GO111MODULE: on steps: - - name: Install Go - uses: actions/setup-go@v1 - with: - go-version: go1.14.x - name: Checkout Source uses: actions/checkout@v2 - name: Create Test Coverage - run: make test-coverage + uses: cedrickring/golang-action@1.5.1 + with: + args: make test-coverage - name: Upload Test Coverage uses: codecov/codecov-action@v1 with: