@@ -61,12 +61,11 @@ jobs:
61
61
- lint
62
62
strategy :
63
63
matrix :
64
- nvim_version : [stable, nightly, v0.9.0 ]
64
+ nvim_version : [stable, nightly]
65
65
runs-on : ubuntu-latest
66
66
steps :
67
67
- uses : actions/checkout@v4
68
68
- uses : rhysd/action-setup-vim@v1
69
- id : vim
70
69
with :
71
70
neovim : true
72
71
version : ${{ matrix.nvim_version }}
@@ -80,51 +79,49 @@ jobs:
80
79
run : |
81
80
luarocks install vusted
82
81
vusted ./spec
83
- # code_coverage:
84
- # name: Code Coverage
85
- # needs:
86
- # - lint
87
- # strategy:
88
- # matrix:
89
- # nvim_version: [stable]
90
- # runs-on: ubuntu-latest
91
- # steps:
92
- # - uses: actions/checkout@v4
93
- # - uses: rhysd/action-setup-vim@v1
94
- # id: vim
95
- # with:
96
- # neovim: true
97
- # version: ${{ matrix.nvim_version }}
98
- # - uses: leafo/gh-actions-lua@v10
99
- # with:
100
- # # luaVersion: "luajit-2.1.0-beta3"
101
- # luaVersion: "luajit-openresty"
102
- # - uses: leafo/gh-actions-luarocks@v4
103
- # - name: Generate Coverage Reports
104
- # run: |
105
- # luarocks --lua-version=5.1 install luacov
106
- # luarocks --lua-version=5.1 install luacov-reporter-lcov
107
- # luarocks --lua-version=5.1 install vusted
108
- # vusted --coverage ./spec
109
- # echo "ls ."
110
- # ls -l .
111
- # echo "run luacov"
112
- # luacov
113
- # echo "ls ."
114
- # ls -l .
115
- # echo "tail ./luacov.report.out"
116
- # tail -n 10 ./luacov.report.out
117
- # - uses: codecov/codecov-action@v4
118
- # with:
119
- # files: luacov.report.out
120
- # env:
121
- # CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
82
+ code_coverage :
83
+ name : Code Coverage
84
+ needs :
85
+ - lint
86
+ strategy :
87
+ matrix :
88
+ nvim_version : [stable]
89
+ runs-on : ubuntu-latest
90
+ steps :
91
+ - uses : actions/checkout@v4
92
+ - uses : rhysd/action-setup-vim@v1
93
+ with :
94
+ neovim : true
95
+ version : ${{ matrix.nvim_version }}
96
+ - uses : leafo/gh-actions-lua@v10
97
+ with :
98
+ luaVersion : " luajit-openresty"
99
+ - uses : leafo/gh-actions-luarocks@v4
100
+ - name : Generate Coverage Reports
101
+ run : |
102
+ luarocks install luacov
103
+ luarocks install luacov-reporter-lcov
104
+ luarocks --lua-version=5.1 install vusted
105
+ vusted --coverage ./spec
106
+ echo "ls -l ."
107
+ ls -l .
108
+ echo "luacov -r lcov"
109
+ luacov -r lcov
110
+ echo "ls -l ."
111
+ ls -l .
112
+ echo "tail ./luacov.report.out"
113
+ tail -n 10 ./luacov.report.out
114
+ - uses : codecov/codecov-action@v4
115
+ with :
116
+ files : luacov.report.out
117
+ env :
118
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
122
119
release :
123
120
name : Release
124
121
if : ${{ github.ref == 'refs/heads/master' }}
125
122
needs :
126
123
- unit_test
127
- # - code_coverage
124
+ - code_coverage
128
125
runs-on : ubuntu-latest
129
126
steps :
130
127
- uses : google-github-actions/release-please-action@v3
0 commit comments