From 74004770273153f8a6274fee128de49717ab8188 Mon Sep 17 00:00:00 2001 From: Antoine Pelisse Date: Tue, 15 Aug 2023 14:45:31 -0700 Subject: [PATCH 1/2] github/workflow: Remove all inconsistent spacing --- .github/workflows/ci.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a5ce60df..e8b5910f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,13 +1,10 @@ name: ci-pipeline - on: push: branches: [ master ] pull_request: branches: [ master ] - jobs: - ci: runs-on: ubuntu-latest strategy: @@ -15,12 +12,10 @@ jobs: go: [ '1.19', '1.x' ] steps: - uses: actions/checkout@v3 - - name: Set up Go uses: actions/setup-go@v3 with: go-version: "${{ matrix.go }}" - - name: Build run: | go mod tidy && git diff --exit-code From ca5dfb627171aca005ed138f8f1fad7cc1f4fe10 Mon Sep 17 00:00:00 2001 From: Antoine Pelisse Date: Tue, 15 Aug 2023 14:46:34 -0700 Subject: [PATCH 2/2] github/workflow: Update go action to v4, use go.mod version --- .github/workflows/ci.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8b5910f8..580d2f2e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,15 +7,12 @@ on: jobs: ci: runs-on: ubuntu-latest - strategy: - matrix: - go: [ '1.19', '1.x' ] steps: - uses: actions/checkout@v3 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: - go-version: "${{ matrix.go }}" + go-version-file: 'go.mod' - name: Build run: | go mod tidy && git diff --exit-code