From f648d479609ef6e9f5eabbb33f559748ca4a664e Mon Sep 17 00:00:00 2001 From: Koichi Shiraishi Date: Wed, 8 May 2024 16:07:22 +0900 Subject: [PATCH] github/workflows: update test workflow Signed-off-by: Koichi Shiraishi --- .github/workflows/{test.yml => test.yaml} | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) rename .github/workflows/{test.yml => test.yaml} (79%) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yaml similarity index 79% rename from .github/workflows/test.yml rename to .github/workflows/test.yaml index 8ea3574e..44cce89e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yaml @@ -20,13 +20,14 @@ jobs: strategy: matrix: os: - - ubuntu-22.04 # https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md + - ubuntu-22.04 # https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md - macos-13 # https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md - - windows-2022 # https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md + - macos-14 # https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md + - windows-2022 # https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md go-version: - - 1.18.x - - 1.19.x - 1.20.x + - 1.21.x + - 1.22.x neovim-version: - v0.9.1 - nightly @@ -42,12 +43,14 @@ jobs: echo "NVIM_VERSION=$(if [ ${{ matrix.neovim-version }} != 'nightly' ]; then echo 'stable'; else echo 'nightly'; fi)" >> $GITHUB_ENV - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} + check-latest: true + cache-dependency-path: go.mod - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install neovim binary uses: rhysd/action-setup-vim@v1 @@ -63,7 +66,7 @@ jobs: run: | go test -v -race -count=1 -covermode=atomic -coverpkg=./... -coverprofile=coverage.out ./... - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: file: coverage.out flags: ${{ env.OS }}-${{ env.GO_VERSION }}-${{ env.NVIM_VERSION }}