Skip to content

Commit c3c5fcc

Browse files
committed
github/workflow: update codecov-action to v2 and add NVIM_VERSION flag
Signed-off-by: Koichi Shiraishi <[email protected]>
1 parent 6afca42 commit c3c5fcc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
run: |
4242
echo "OS=$(echo ${{ runner.os }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
4343
echo "GO_VERSION=$(echo ${{ matrix.go-version }} | cut -d. -f-2)" >> $GITHUB_ENV
44+
echo "NVIM_VERSION=$(if [ ${{ matrix.neovim-version }} != 'nightly' ]; then echo 'stable'; else echo 'nightly'; fi)" >> $GITHUB_ENV
4445
4546
- name: Install Go
4647
uses: actions/setup-go@v2
@@ -112,8 +113,8 @@ jobs:
112113
go vet ./...
113114
go test -v -race -count=1 -covermode=atomic -coverpkg=./... -coverprofile=coverage.out ./...
114115
115-
- uses: codecov/codecov-action@v1
116+
- uses: codecov/codecov-action@v2
116117
with:
117118
file: coverage.out
118-
flags: ${{ env.OS }}-${{ env.GO_VERSION }}
119+
flags: ${{ env.OS }}-${{ env.GO_VERSION }}-${{ env.NVIM_VERSION }}
119120
fail_ci_if_error: true

0 commit comments

Comments
 (0)