@@ -22,13 +22,13 @@ jobs:
2222 strategy :
2323 matrix :
2424 os :
25- - ubuntu-20 .04 # https://github.com/actions/virtual-environments /blob/main/images/linux/Ubuntu2004-README .md
26- - macos-12 # https://github.com/actions/virtual-environments /blob/main/images/macos/macos-12-Readme.md
27- - windows-2022 # https://github.com/actions/virtual-environments /blob/main/images/win/Windows2022-Readme.md
25+ - ubuntu-22 .04 # https://github.com/actions/runner-images /blob/main/images/linux/Ubuntu2204-Readme .md
26+ - macos-12 # https://github.com/actions/runner-images /blob/main/images/macos/macos-12-Readme.md
27+ - windows-2022 # https://github.com/actions/runner-images /blob/main/images/win/Windows2022-Readme.md
2828 go-version :
29- - 1.16.x
3029 - 1.17.x
3130 - 1.18.x
31+ - 1.19.x
3232 neovim-version :
3333 - v0.7.0
3434 - nightly
@@ -51,35 +51,26 @@ jobs:
5151 - name : Checkout code
5252 uses : actions/checkout@v3
5353
54- - name : Cache Go module and build cache
55- uses : actions/cache@v3
56- with :
57- key : go-${{ env.OS }}-${{ hashFiles('**/go.mod') }}
58- path : |
59- ~/go/pkg/mod
60- ~/.cache/go-build
61- ~/Library/Caches/go-build
62- '%LocalAppData%\go-build'
63- restore-keys : |
64- go-${{ env.OS }}-${{ hashFiles('**/go.mod') }}
65-
6654 - name : Install neovim binary
6755 uses : rhysd/action-setup-vim@v1
6856 with :
6957 neovim : true
7058 version : ${{ matrix.neovim-version }}
7159
7260 - name : gofmt
73- if : ${{ env.OS != 'windows' }}
61+ if : matrix.go-version == '1.19.x' && env.OS != 'windows'
7462 run : |
7563 diff -u <(echo -n) <(gofmt -s -d .)
7664
77- - name : Test and vet
65+ - name : go vet
7866 run : |
7967 go vet ./...
68+
69+ - name : Test and take a coverage
70+ run : |
8071 go test -v -race -count=1 -covermode=atomic -coverpkg=./... -coverprofile=coverage.out ./...
8172
82- - uses : codecov/codecov-action@v2
73+ - uses : codecov/codecov-action@v3
8374 with :
8475 file : coverage.out
8576 flags : ${{ env.OS }}-${{ env.GO_VERSION }}-${{ env.NVIM_VERSION }}
0 commit comments