From 1182f9f4eeb104dbff66c99de3c8c8cef1b00b9d Mon Sep 17 00:00:00 2001 From: Songmu Date: Thu, 23 Feb 2023 00:37:49 +0900 Subject: [PATCH] go-version-file: go.mod --- .github/actions/release/action.yml | 2 +- .github/workflows/integration.yaml | 6 +++--- .github/workflows/tagpr.yaml | 6 +++--- .github/workflows/test.yaml | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml index da9fe61..ea39403 100644 --- a/.github/actions/release/action.yml +++ b/.github/actions/release/action.yml @@ -13,7 +13,7 @@ runs: - name: setup go uses: actions/setup-go@v3 with: - go-version: 1.x + go-version-file: go.mod - name: release run: | make crossbuild upload diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 68bad2a..a53b3f6 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -7,12 +7,12 @@ jobs: test: runs-on: macos-latest steps: + - name: checkout + uses: actions/checkout@v3 - name: setup go uses: actions/setup-go@v3 with: - go-version: 1.x - - name: checkout - uses: actions/checkout@v3 + go-version-file: go.mod - name: install run: | make install diff --git a/.github/workflows/tagpr.yaml b/.github/workflows/tagpr.yaml index 0e8f5cf..41bb9c0 100644 --- a/.github/workflows/tagpr.yaml +++ b/.github/workflows/tagpr.yaml @@ -7,12 +7,12 @@ jobs: tagpr: runs-on: ubuntu-latest steps: + - name: checkout + uses: actions/checkout@v3 - name: setup go uses: actions/setup-go@v3 with: - go-version: 1.x - - name: checkout - uses: actions/checkout@v3 + go-version-file: go.mod - name: tagpr id: tagpr uses: Songmu/tagpr@v1 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8199ede..edf24a1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -14,10 +14,6 @@ jobs: - macOS-latest - windows-latest steps: - - name: setup go - uses: actions/setup-go@v3 - with: - go-version: 1.x - name: Set git to use LF run: | git config --global core.autocrlf false @@ -25,6 +21,10 @@ jobs: if: "matrix.os == 'windows-latest'" - name: checkout uses: actions/checkout@v3 + - name: setup go + uses: actions/setup-go@v3 + with: + go-version-file: go.mod - name: test run: go test -coverprofile coverage.out -covermode atomic ./... - name: Send coverage