From d8f2e3b2afa6887efbc2185616cbbfff3dd4b7ea Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Mon, 18 Nov 2024 18:43:20 +0200 Subject: [PATCH 01/22] ci: Add workflows and dependabot config --- .github/dependabot.yml | 8 +++ .github/workflows/dependency-review.yml | 26 ++++++++++ .github/workflows/lint-pr-title.yml | 66 +++++++++++++++++++++++++ .github/workflows/test.yml | 43 ++++++++++++++++ 4 files changed, 143 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/dependency-review.yml create mode 100644 .github/workflows/lint-pr-title.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..60df717 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: + - package-ecosystem: 'github-actions' + directory: '/' + schedule: + interval: 'daily' + commit-message: + prefix: 'chore(ci)' diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml new file mode 100644 index 0000000..b530e67 --- /dev/null +++ b/.github/workflows/dependency-review.yml @@ -0,0 +1,26 @@ +name: Dependency review + +on: + pull_request: + branches: [master] + +# Ensures review for a previous commit will be completed before reviewing a following commit. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + +permissions: {} + +jobs: + dependency-review: + runs-on: ubuntu-latest + timeout-minutes: 3 + permissions: + contents: read + pull-requests: write + + steps: + - uses: actions/checkout@v4 + + - uses: actions/dependency-review-action@v4 + with: + comment-summary-in-pr: on-failure diff --git a/.github/workflows/lint-pr-title.yml b/.github/workflows/lint-pr-title.yml new file mode 100644 index 0000000..5cd567a --- /dev/null +++ b/.github/workflows/lint-pr-title.yml @@ -0,0 +1,66 @@ +name: Lint PR title + +on: + pull_request_target: + types: [opened, edited, synchronize, reopened] + branches: [master] + +# Ensures linting for a previous PR title will be completed before linting a modified title. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + +permissions: {} + +jobs: + lint: + runs-on: ubuntu-latest + timeout-minutes: 3 + permissions: + pull-requests: read + outputs: + error_message: ${{ steps.lint.outputs.error_message }} + + steps: + - uses: amannn/action-semantic-pull-request@v5 + id: lint + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + subjectPattern: '^[A-Z].+[^.]$' + subjectPatternError: | + The subject found in the pull request title didn't match the configured pattern. + + Please ensure that the subject "{subject}": + - does start with an uppercase character, + - does not end with a period. + + report: + if: ${{ always() }} + needs: lint + runs-on: ubuntu-latest + timeout-minutes: 3 + permissions: + pull-requests: write + + steps: + - uses: marocchino/sticky-pull-request-comment@v2 + if: ${{ needs.lint.outputs.error_message != null }} + with: + header: pr-title-lint-error + message: | + Hey there and thank you for opening this pull request! 👋 + + We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted. + + Details: + + ``` + ${{ needs.lint.outputs.error_message }} + ``` + + # Delete a previous comment when the issue has been resolved. + - uses: marocchino/sticky-pull-request-comment@v2 + if: ${{ needs.lint.outputs.error_message == null }} + with: + header: pr-title-lint-error + delete: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..ad2b662 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,43 @@ +name: Test + +on: + push: + tags: ["v*"] + branches: ["master"] + pull_request: + branches: ["master"] + workflow_dispatch: + +# Cancel testing of a previous commit for the same branch. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v4 + + - uses: jdx/mise-action@v2 + + - name: Cache .buildcache + uses: actions/cache@v4 + with: + path: .buildcache + key: build-v1-${{ runner.os }}-${{ hashFiles('.*.version') }}-${{ hashFiles('tests/.config/nvim/lazy-lock.json') }} + restore-keys: | + build-v1-${{ runner.os }}-${{ hashFiles('.*.version') }}- + build-v1-${{ runner.os }}- + + - run: mise install + + - run: mise run test + + - name: Check is generated doc is up-to-date + run: mise run generate/panvimdoc && test -z "$(git status --porcelain)" From 4d4786effcc2bf4ad3174af2dbf8019c01cd5283 Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Mon, 18 Nov 2024 18:59:17 +0200 Subject: [PATCH 02/22] fix --- .github/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ad2b662..0bfa5fd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,6 +8,10 @@ on: branches: ["master"] workflow_dispatch: +defaults: + run: + shell: bash + # Cancel testing of a previous commit for the same branch. concurrency: group: ${{ github.workflow }}-${{ github.ref }} From 2cacbfe71a7d3baae533afb823eb1cea4eaed66a Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Mon, 18 Nov 2024 19:07:24 +0200 Subject: [PATCH 03/22] fix --- .github/workflows/test.yml | 4 ---- mise.toml | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0bfa5fd..ad2b662 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,10 +8,6 @@ on: branches: ["master"] workflow_dispatch: -defaults: - run: - shell: bash - # Cancel testing of a previous commit for the same branch. concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/mise.toml b/mise.toml index 8c45eb8..2963e40 100644 --- a/mise.toml +++ b/mise.toml @@ -25,8 +25,9 @@ depends = ['lint', 'test/*'] run = 'nvim -l tests/run.lua --minitest' [tasks.'test/0.9'] +shell = 'bash -c' run = ''' -eval "$(mise activate --shims)" +eval "$(mise activate --shims bash)" eval "$(mise sh neovim@0.9)" nvim -u tests/shim_nvim-0.9.lua -l tests/run.lua --minitest ''' From 973891841d2c02e7ff3ec91f22c2e2a69159a0ee Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Mon, 18 Nov 2024 19:19:45 +0200 Subject: [PATCH 04/22] fix --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ad2b662..f2f8d57 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,7 @@ jobs: build-v1-${{ runner.os }}-${{ hashFiles('.*.version') }}- build-v1-${{ runner.os }}- - - run: mise install + - run: mise run deps/tests/restore - run: mise run test From d6411f896b95a59e332d639bc8df2271c366dfca Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Mon, 18 Nov 2024 19:41:20 +0200 Subject: [PATCH 05/22] fix --- mise.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mise.toml b/mise.toml index 2963e40..a9a7141 100644 --- a/mise.toml +++ b/mise.toml @@ -28,7 +28,9 @@ run = 'nvim -l tests/run.lua --minitest' shell = 'bash -c' run = ''' eval "$(mise activate --shims bash)" +eval "$(mise hook-env -s bash)" eval "$(mise sh neovim@0.9)" +nvim --version nvim -u tests/shim_nvim-0.9.lua -l tests/run.lua --minitest ''' From 353310dd0714aeb460cc91363281feb0da54e79b Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Mon, 18 Nov 2024 19:43:02 +0200 Subject: [PATCH 06/22] fix --- mise.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/mise.toml b/mise.toml index a9a7141..2addb2f 100644 --- a/mise.toml +++ b/mise.toml @@ -45,6 +45,7 @@ run = 'selene .' [tasks.'generate/panvimdoc'] env.DIR = '.buildcache/panvimdoc' +shell = 'bash -c' run = '''set -eo pipefail export PANVIMDOC_VER="$(cat .panvimdoc.version)" test -d $DIR || git clone https://github.com/kdheepak/panvimdoc $DIR From 8bf58a39784b78f79f88cf1165909237d43120aa Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Mon, 18 Nov 2024 19:47:55 +0200 Subject: [PATCH 07/22] fix --- mise.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mise.toml b/mise.toml index 2addb2f..a1469ba 100644 --- a/mise.toml +++ b/mise.toml @@ -47,9 +47,9 @@ run = 'selene .' env.DIR = '.buildcache/panvimdoc' shell = 'bash -c' run = '''set -eo pipefail -export PANVIMDOC_VER="$(cat .panvimdoc.version)" +VER="$(cat .panvimdoc.version)" test -d $DIR || git clone https://github.com/kdheepak/panvimdoc $DIR -git -C $DIR co $PANVIMDOC_VER 2>/dev/null || (git -C $DIR fetch && git -C $DIR co $PANVIMDOC_VER) +git -C $DIR checkout $VER 2>/dev/null || (git -C $DIR fetch && git -C $DIR checkout $VER) $DIR/panvimdoc.sh \ --project-name ruscmd \ --description 'NORMAL and CMDLINE modes support in Russian keyboard layout' \ From a5c15d488463b475b8c5838a094c50327f8bce20 Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Mon, 18 Nov 2024 19:55:01 +0200 Subject: [PATCH 08/22] fix --- mise.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mise.toml b/mise.toml index a1469ba..03319af 100644 --- a/mise.toml +++ b/mise.toml @@ -46,11 +46,11 @@ run = 'selene .' [tasks.'generate/panvimdoc'] env.DIR = '.buildcache/panvimdoc' shell = 'bash -c' -run = '''set -eo pipefail +run = '''set -xeo pipefail VER="$(cat .panvimdoc.version)" test -d $DIR || git clone https://github.com/kdheepak/panvimdoc $DIR git -C $DIR checkout $VER 2>/dev/null || (git -C $DIR fetch && git -C $DIR checkout $VER) -$DIR/panvimdoc.sh \ +bash -x $DIR/panvimdoc.sh \ --project-name ruscmd \ --description 'NORMAL and CMDLINE modes support in Russian keyboard layout' \ --input-file README.md \ From 989a33fde82be310d93fe01af66b9e340b0b81b9 Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Mon, 18 Nov 2024 19:59:06 +0200 Subject: [PATCH 09/22] fix --- mise.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mise.toml b/mise.toml index 03319af..3fae23d 100644 --- a/mise.toml +++ b/mise.toml @@ -50,7 +50,7 @@ run = '''set -xeo pipefail VER="$(cat .panvimdoc.version)" test -d $DIR || git clone https://github.com/kdheepak/panvimdoc $DIR git -C $DIR checkout $VER 2>/dev/null || (git -C $DIR fetch && git -C $DIR checkout $VER) -bash -x $DIR/panvimdoc.sh \ +GITHUB_ACTIONS= bash -x $DIR/panvimdoc.sh \ --project-name ruscmd \ --description 'NORMAL and CMDLINE modes support in Russian keyboard layout' \ --input-file README.md \ From d1de76f10e9fd748d3a9c9d0bcca1644662cb8be Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Mon, 18 Nov 2024 20:01:37 +0200 Subject: [PATCH 10/22] fix --- .github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f2f8d57..20e8577 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,4 +40,7 @@ jobs: - run: mise run test - name: Check is generated doc is up-to-date - run: mise run generate/panvimdoc && test -z "$(git status --porcelain)" + run: | + mise run generate/panvimdoc + git status --porcelain + test -z "$(git status --porcelain)" From 41e1d35b5f4b5785822b973926a322aa966a9013 Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Mon, 18 Nov 2024 20:03:42 +0200 Subject: [PATCH 11/22] fix --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 20e8577..7d44814 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,5 +42,6 @@ jobs: - name: Check is generated doc is up-to-date run: | mise run generate/panvimdoc + git diff | cat git status --porcelain test -z "$(git status --porcelain)" From 0c03f76e82cd3a650c9a60f27446e0e163311a63 Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Mon, 18 Nov 2024 22:17:22 +0200 Subject: [PATCH 12/22] fix --- .github/workflows/test.yml | 4 ++++ mise.toml | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7d44814..e180b5d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,6 +25,8 @@ jobs: - uses: actions/checkout@v4 - uses: jdx/mise-action@v2 + with: + experimental: true - name: Cache .buildcache uses: actions/cache@v4 @@ -35,6 +37,8 @@ jobs: build-v1-${{ runner.os }}-${{ hashFiles('.*.version') }}- build-v1-${{ runner.os }}- + - run: mise ls + - run: mise run deps/tests/restore - run: mise run test diff --git a/mise.toml b/mise.toml index 3fae23d..b4c0f10 100644 --- a/mise.toml +++ b/mise.toml @@ -46,11 +46,11 @@ run = 'selene .' [tasks.'generate/panvimdoc'] env.DIR = '.buildcache/panvimdoc' shell = 'bash -c' -run = '''set -xeo pipefail +run = '''set -eo pipefail VER="$(cat .panvimdoc.version)" test -d $DIR || git clone https://github.com/kdheepak/panvimdoc $DIR git -C $DIR checkout $VER 2>/dev/null || (git -C $DIR fetch && git -C $DIR checkout $VER) -GITHUB_ACTIONS= bash -x $DIR/panvimdoc.sh \ +GITHUB_ACTIONS= $DIR/panvimdoc.sh \ --project-name ruscmd \ --description 'NORMAL and CMDLINE modes support in Russian keyboard layout' \ --input-file README.md \ From a33a15ee456f971dd2ed53310343ad17a2cb9a0a Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Mon, 18 Nov 2024 22:51:49 +0200 Subject: [PATCH 13/22] fix --- mise.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mise.lock b/mise.lock index 26b01f9..cd59a23 100644 --- a/mise.lock +++ b/mise.lock @@ -4,6 +4,6 @@ neovim = [ "0.10.2", "0.9.0", ] -"ubi:JohnnyMorganz/stylua" = "0.20.0" +"ubi:JohnnyMorganz/stylua" = "2.0.1" "ubi:Kampfkarren/selene" = "0.27.1" "ubi:jgm/pandoc" = "3.5" From 5a5d899d7b9641ced6c0108537a4a7af389a006e Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Mon, 18 Nov 2024 22:58:44 +0200 Subject: [PATCH 14/22] fix --- tests/run.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/run.lua b/tests/run.lua index d658583..104491b 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -17,6 +17,7 @@ vim.env.XDG_STATE_HOME = vim.uv.cwd() .. '/.buildcache/tests/state' ---@type LazyConfig local config = { defaults = { version = '*' }, + rocks = { hererocks = true }, spec = { 'lunarmodules/luassert', { From 88c287201c91eaa945b57c9af21e99acaa0f47a3 Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Mon, 18 Nov 2024 23:13:18 +0200 Subject: [PATCH 15/22] fix --- .github/workflows/test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e180b5d..c2f9379 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,7 +39,12 @@ jobs: - run: mise ls - - run: mise run deps/tests/restore + - name: Restore test dependencies + run: | + mise run deps/tests/restore + # Workaround: Lazy on 1st run restores all but itself and hererocks, so try again. + git checkout -- tests/.config/nvim/lazy-lock.json + mise run deps/tests/restore - run: mise run test From 0c359e0bceef9e1d3bdb3a69f4eed66a991c5b8a Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Tue, 19 Nov 2024 19:27:18 +0200 Subject: [PATCH 16/22] debug --- .github/workflows/test.yml | 20 +++++++++++--------- mise.toml | 7 +++---- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c2f9379..116502a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,8 +25,6 @@ jobs: - uses: actions/checkout@v4 - uses: jdx/mise-action@v2 - with: - experimental: true - name: Cache .buildcache uses: actions/cache@v4 @@ -39,18 +37,22 @@ jobs: - run: mise ls - - name: Restore test dependencies + - name: DEBUG Check results of `mise install` run: | - mise run deps/tests/restore - # Workaround: Lazy on 1st run restores all but itself and hererocks, so try again. + git status + git diff | cat + + - run: mise run deps/tests/restore + + - name: WORKAROUND Restore rest of test dependencies + run: | + # Lazy on 1st run restores all but itself and hererocks, so try again. git checkout -- tests/.config/nvim/lazy-lock.json mise run deps/tests/restore - run: mise run test - - name: Check is generated doc is up-to-date + - name: Check is generated doc up-to-date run: | mise run generate/panvimdoc - git diff | cat - git status --porcelain - test -z "$(git status --porcelain)" + test -z "$(git status --porcelain -- ./doc)" diff --git a/mise.toml b/mise.toml index b4c0f10..0c6303a 100644 --- a/mise.toml +++ b/mise.toml @@ -27,11 +27,10 @@ run = 'nvim -l tests/run.lua --minitest' [tasks.'test/0.9'] shell = 'bash -c' run = ''' +mise exec neovim@0.9 -- nvim --version eval "$(mise activate --shims bash)" -eval "$(mise hook-env -s bash)" -eval "$(mise sh neovim@0.9)" -nvim --version -nvim -u tests/shim_nvim-0.9.lua -l tests/run.lua --minitest +mise exec neovim@0.9 -- nvim --version +mise exec neovim@0.9 -- nvim -u tests/shim_nvim-0.9.lua -l tests/run.lua --minitest ''' [tasks.lint] From 5fb4be86e7f0c46f94702992b9e307dfd2285267 Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Tue, 19 Nov 2024 19:34:50 +0200 Subject: [PATCH 17/22] cleanup --- mise.toml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/mise.toml b/mise.toml index 0c6303a..688b4a4 100644 --- a/mise.toml +++ b/mise.toml @@ -25,13 +25,7 @@ depends = ['lint', 'test/*'] run = 'nvim -l tests/run.lua --minitest' [tasks.'test/0.9'] -shell = 'bash -c' -run = ''' -mise exec neovim@0.9 -- nvim --version -eval "$(mise activate --shims bash)" -mise exec neovim@0.9 -- nvim --version -mise exec neovim@0.9 -- nvim -u tests/shim_nvim-0.9.lua -l tests/run.lua --minitest -''' +run = 'mise exec neovim@0.9 -- nvim -u tests/shim_nvim-0.9.lua -l tests/run.lua --minitest' [tasks.lint] depends = ['lint/*'] @@ -44,8 +38,8 @@ run = 'selene .' [tasks.'generate/panvimdoc'] env.DIR = '.buildcache/panvimdoc' -shell = 'bash -c' -run = '''set -eo pipefail +shell = 'bash -eo pipefail -c' +run = ''' VER="$(cat .panvimdoc.version)" test -d $DIR || git clone https://github.com/kdheepak/panvimdoc $DIR git -C $DIR checkout $VER 2>/dev/null || (git -C $DIR fetch && git -C $DIR checkout $VER) From 1974cfe4932cad80920368a792cb75a9e37caee8 Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Tue, 19 Nov 2024 19:50:48 +0200 Subject: [PATCH 18/22] fix --- tests/test_ruscmd.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_ruscmd.lua b/tests/test_ruscmd.lua index 6f7d64f..10d2afb 100644 --- a/tests/test_ruscmd.lua +++ b/tests/test_ruscmd.lua @@ -40,9 +40,13 @@ describe('cabbrev', function() child.lua [[ require('ruscmd').setup {} ]] child.type_keys 'Жив!' assert.same({ '' }, child_lines()) - assert.error_matches(function() + local err = assert.error(function() child.type_keys 'Жй' - end, 'Invalid channel') + end) + assert.is_true( + err:match 'Invalid channel' ~= nil or err:match 'closed by the client' ~= nil, + string.format('error %q matches "Invalid channel" or "closed by the client"', err) + ) end) it('should add new command', function() From 96a9dfb4edcd9a50bf28d273338ee9311c44d2dd Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Tue, 19 Nov 2024 20:00:54 +0200 Subject: [PATCH 19/22] debug --- .github/workflows/test.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 116502a..fe2b4a7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,11 +37,6 @@ jobs: - run: mise ls - - name: DEBUG Check results of `mise install` - run: | - git status - git diff | cat - - run: mise run deps/tests/restore - name: WORKAROUND Restore rest of test dependencies @@ -55,4 +50,5 @@ jobs: - name: Check is generated doc up-to-date run: | mise run generate/panvimdoc + false test -z "$(git status --porcelain -- ./doc)" From e844b74a5140e034782514ed40a7c008ae2d193c Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Tue, 19 Nov 2024 20:01:50 +0200 Subject: [PATCH 20/22] cleanup --- .github/workflows/test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fe2b4a7..853a48b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,5 +50,4 @@ jobs: - name: Check is generated doc up-to-date run: | mise run generate/panvimdoc - false test -z "$(git status --porcelain -- ./doc)" From 68cafd0425600252daa0adf27e898d1fc3f5551e Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Tue, 19 Nov 2024 20:06:54 +0200 Subject: [PATCH 21/22] debug --- mise.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mise.toml b/mise.toml index 688b4a4..2b800e9 100644 --- a/mise.toml +++ b/mise.toml @@ -38,10 +38,11 @@ run = 'selene .' [tasks.'generate/panvimdoc'] env.DIR = '.buildcache/panvimdoc' -shell = 'bash -eo pipefail -c' +# shell = 'bash -eo pipefail -c' run = ''' VER="$(cat .panvimdoc.version)" test -d $DIR || git clone https://github.com/kdheepak/panvimdoc $DIR +false git -C $DIR checkout $VER 2>/dev/null || (git -C $DIR fetch && git -C $DIR checkout $VER) GITHUB_ACTIONS= $DIR/panvimdoc.sh \ --project-name ruscmd \ From cc575706cb1a333576ede6e7c95e5319a433b73b Mon Sep 17 00:00:00 2001 From: Alex Efros Date: Tue, 19 Nov 2024 20:07:45 +0200 Subject: [PATCH 22/22] debug --- mise.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mise.toml b/mise.toml index 2b800e9..688b4a4 100644 --- a/mise.toml +++ b/mise.toml @@ -38,11 +38,10 @@ run = 'selene .' [tasks.'generate/panvimdoc'] env.DIR = '.buildcache/panvimdoc' -# shell = 'bash -eo pipefail -c' +shell = 'bash -eo pipefail -c' run = ''' VER="$(cat .panvimdoc.version)" test -d $DIR || git clone https://github.com/kdheepak/panvimdoc $DIR -false git -C $DIR checkout $VER 2>/dev/null || (git -C $DIR fetch && git -C $DIR checkout $VER) GITHUB_ACTIONS= $DIR/panvimdoc.sh \ --project-name ruscmd \