aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml7
-rw-r--r--.github/workflows/commitlint.config.js35
-rw-r--r--.github/workflows/commitlint.config_patch.js27
-rw-r--r--.github/workflows/commitlint.yml12
4 files changed, 10 insertions, 71 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f75320048b..0dbe484108 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -10,7 +10,7 @@ on:
jobs:
unixish:
- name: ${{ matrix.os }} ${{ matrix.flavor }} (cc=${{ matrix.cc }})
+ name: ${{ matrix.runner }} ${{ matrix.flavor }} (cc=${{ matrix.cc }})
strategy:
fail-fast: false
matrix:
@@ -30,6 +30,9 @@ jobs:
- cc: clang
runner: macos-10.15
os: osx
+ - cc: clang
+ runner: macos-11.0
+ os: osx
- flavor: functionaltest-lua
cc: gcc
runner: ubuntu-20.04
@@ -80,7 +83,7 @@ jobs:
path: |
${{ env.CACHE_NVIM_DEPS_DIR }}
~/.ccache
- key: ${{ runner.os }}-${{ matrix.flavor }}-${{ matrix.cc }}-${{ hashFiles('cmake/*', 'third-party/**', '**/CMakeLists.txt') }}-${{ github.base_ref }}
+ key: ${{ matrix.runner }}-${{ matrix.flavor }}-${{ matrix.cc }}-${{ hashFiles('cmake/*', 'third-party/**', '**/CMakeLists.txt') }}-${{ github.base_ref }}
- name: Build third-party
run: ./ci/before_script.sh
diff --git a/.github/workflows/commitlint.config.js b/.github/workflows/commitlint.config.js
deleted file mode 100644
index 5f10ffc6f4..0000000000
--- a/.github/workflows/commitlint.config.js
+++ /dev/null
@@ -1,35 +0,0 @@
-module.exports = {
- rules: {
- 'body-leading-blank': [1, 'always'],
- 'body-max-line-length': [2, 'always', 100],
- 'footer-leading-blank': [1, 'always'],
- 'footer-max-line-length': [2, 'always', 100],
- 'header-max-length': [2, 'always', 100],
- 'scope-case': [2, 'always', 'lower-case'],
- 'subject-case': [
- 2,
- 'never',
- ['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
- ],
- 'subject-empty': [2, 'never'],
- 'subject-full-stop': [2, 'never', '.'],
- 'type-case': [2, 'always', 'lower-case'],
- 'type-empty': [2, 'never'],
- 'type-enum': [
- 2,
- 'always',
- [
- 'build',
- 'chore',
- 'ci',
- 'docs',
- 'feat',
- 'fix',
- 'perf',
- 'refactor',
- 'revert',
- 'test',
- ],
- ],
- },
-};
diff --git a/.github/workflows/commitlint.config_patch.js b/.github/workflows/commitlint.config_patch.js
deleted file mode 100644
index ca398c45dc..0000000000
--- a/.github/workflows/commitlint.config_patch.js
+++ /dev/null
@@ -1,27 +0,0 @@
-module.exports = {
- parserPreset: {
- parserOpts: { headerPattern: /^([^\(\):]*)(?:\((.*)\))?!?:(.*)$/ }
- },
- rules: {
- 'body-leading-blank': [1, 'always'],
- 'body-max-line-length': [2, 'always', 100],
- 'footer-max-line-length': [2, 'always', 100],
- 'scope-case': [2, 'always', 'lower-case'],
- 'subject-case': [
- 2,
- 'never',
- ['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
- ],
- 'subject-empty': [2, 'never'],
- 'subject-full-stop': [2, 'never', '.'],
- 'type-case': [2, 'always', 'lower-case'],
- 'type-empty': [2, 'never'],
- 'type-enum': [
- 2,
- 'always',
- [
- 'vim-patch',
- ],
- ],
- },
-};
diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml
index 9ae138fbd7..4c9c526946 100644
--- a/.github/workflows/commitlint.yml
+++ b/.github/workflows/commitlint.yml
@@ -9,10 +9,8 @@ jobs:
- uses: actions/checkout@v2.3.1
with:
fetch-depth: 0
- - run: npm install --save-dev @commitlint/cli
- - run: |
- if [[ "$(gh pr view ${{ github.event.pull_request.number }} --json commits --jq '.[][0].messageHeadline')" == vim-patch* ]];then
- npx commitlint --from HEAD~1 --to HEAD --verbose --help-url https://github.com/neovim/neovim/blob/master/CONTRIBUTING.md#commit-messages --config .github/workflows/commitlint.config_patch.js
- else
- npx commitlint --from HEAD~1 --to HEAD --verbose --help-url https://github.com/neovim/neovim/blob/master/CONTRIBUTING.md#commit-messages --config .github/workflows/commitlint.config.js
- fi
+ - uses: rhysd/action-setup-vim@v1
+ with:
+ neovim: true
+ - run: gh pr checkout ${{ github.event.pull_request.number }}
+ - run: nvim --clean -es +"lua require('scripts.lintcommit').main({trace=true})"