Skip to content

Commit a71ac7d

Browse files
authored
chore: Update docs and dependencies (#245)
Co-authored-by: linrongbin16 <linrongbin16@users.noreply.github.com>
1 parent 542f517 commit a71ac7d

File tree

15 files changed

+481
-977
lines changed

15 files changed

+481
-977
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- master
99
concurrency:
1010
group: ${{ github.ref }}-${{ github.workflow }}
11-
cancel-in-progress: ${{ !contains(github.ref, 'master') }}
11+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
1212
jobs:
1313
commits:
1414
name: Commits
@@ -69,7 +69,7 @@ jobs:
6969
- lint
7070
strategy:
7171
matrix:
72-
nvim_version: [stable, nightly, v0.7.0]
72+
nvim_version: [stable, nightly, v0.9.0]
7373
runs-on: ubuntu-latest
7474
steps:
7575
- uses: actions/checkout@v4
@@ -80,60 +80,59 @@ jobs:
8080
version: ${{ matrix.nvim_version }}
8181
- uses: leafo/gh-actions-lua@v10
8282
with:
83-
luaVersion: "luajit-2.1.0-beta3"
83+
# luaVersion: "luajit-2.1.0-beta3"
84+
luaVersion: "luajit-openresty"
8485
- uses: leafo/gh-actions-luarocks@v4
8586
- name: Run Test Cases
8687
shell: bash
8788
run: |
8889
luarocks install vusted
8990
vusted ./spec
90-
code_coverage:
91-
name: Code Coverage
92-
needs:
93-
- lint
94-
strategy:
95-
matrix:
96-
nvim_version: [stable]
97-
runs-on: ubuntu-latest
98-
steps:
99-
- uses: actions/checkout@v4
100-
- uses: rhysd/action-setup-vim@v1
101-
id: vim
102-
with:
103-
neovim: true
104-
version: ${{ matrix.nvim_version }}
105-
- uses: leafo/gh-actions-lua@v10
106-
with:
107-
luaVersion: "luajit-2.1.0-beta3"
108-
- uses: leafo/gh-actions-luarocks@v4
109-
- name: Generate Coverage Reports
110-
shell: bash
111-
run: |
112-
luarocks install luacov
113-
luarocks install vusted
114-
vusted --coverage ./spec
115-
- name: Upload Coverage Reports
116-
shell: bash
117-
run: |
118-
echo "ls ."
119-
ls -l .
120-
echo "run luacov"
121-
luacov
122-
echo "ls ."
123-
ls -l .
124-
echo "cat ./luacov.report.out"
125-
cat ./luacov.report.out
126-
- uses: codecov/codecov-action@v3
127-
with:
128-
files: luacov.report.out
129-
env:
130-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
91+
# code_coverage:
92+
# name: Code Coverage
93+
# needs:
94+
# - lint
95+
# strategy:
96+
# matrix:
97+
# nvim_version: [stable]
98+
# runs-on: ubuntu-latest
99+
# steps:
100+
# - uses: actions/checkout@v4
101+
# - uses: rhysd/action-setup-vim@v1
102+
# id: vim
103+
# with:
104+
# neovim: true
105+
# version: ${{ matrix.nvim_version }}
106+
# - uses: leafo/gh-actions-lua@v10
107+
# with:
108+
# # luaVersion: "luajit-2.1.0-beta3"
109+
# luaVersion: "luajit-openresty"
110+
# - uses: leafo/gh-actions-luarocks@v4
111+
# - name: Generate Coverage Reports
112+
# run: |
113+
# luarocks --lua-version=5.1 install luacov
114+
# luarocks --lua-version=5.1 install luacov-reporter-lcov
115+
# luarocks --lua-version=5.1 install vusted
116+
# vusted --coverage ./spec
117+
# echo "ls ."
118+
# ls -l .
119+
# echo "run luacov"
120+
# luacov
121+
# echo "ls ."
122+
# ls -l .
123+
# echo "tail ./luacov.report.out"
124+
# tail -n 10 ./luacov.report.out
125+
# - uses: codecov/codecov-action@v4
126+
# with:
127+
# files: luacov.report.out
128+
# env:
129+
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
131130
release:
132131
name: Release
133132
if: ${{ github.ref == 'refs/heads/master' }}
134133
needs:
135134
- unit_test
136-
- code_coverage
135+
# - code_coverage
137136
runs-on: ubuntu-latest
138137
steps:
139138
- uses: google-github-actions/release-please-action@v3

.markdownlint.jsonc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
// Heading levels should only increment by one level at a time
3+
"MD001": false,
4+
// Line length
5+
"MD013": false,
6+
// Fenced code blocks should have a language specified
7+
"MD040": false,
8+
// Inline HTML
9+
"MD033": false,
10+
// First line in a file should be a top-level heading
11+
"MD041": false,
12+
// Bare URL used
13+
"MD034": false,
14+
}

0 commit comments

Comments
 (0)