@@ -22,13 +22,13 @@ jobs:
22
22
strategy :
23
23
matrix :
24
24
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
28
28
go-version :
29
- - 1.16.x
30
29
- 1.17.x
31
30
- 1.18.x
31
+ - 1.19.x
32
32
neovim-version :
33
33
- v0.7.0
34
34
- nightly
@@ -51,35 +51,26 @@ jobs:
51
51
- name : Checkout code
52
52
uses : actions/checkout@v3
53
53
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
-
66
54
- name : Install neovim binary
67
55
uses : rhysd/action-setup-vim@v1
68
56
with :
69
57
neovim : true
70
58
version : ${{ matrix.neovim-version }}
71
59
72
60
- name : gofmt
73
- if : ${{ env.OS != 'windows' }}
61
+ if : matrix.go-version == '1.19.x' && env.OS != 'windows'
74
62
run : |
75
63
diff -u <(echo -n) <(gofmt -s -d .)
76
64
77
- - name : Test and vet
65
+ - name : go vet
78
66
run : |
79
67
go vet ./...
68
+
69
+ - name : Test and take a coverage
70
+ run : |
80
71
go test -v -race -count=1 -covermode=atomic -coverpkg=./... -coverprofile=coverage.out ./...
81
72
82
- - uses : codecov/codecov-action@v2
73
+ - uses : codecov/codecov-action@v3
83
74
with :
84
75
file : coverage.out
85
76
flags : ${{ env.OS }}-${{ env.GO_VERSION }}-${{ env.NVIM_VERSION }}
0 commit comments