Skip to content

Commit

Permalink
tests: show all output for debugging;
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoomen committed Jul 9, 2023
1 parent 28b676f commit 0b45cb4
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 221 deletions.
95 changes: 48 additions & 47 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
vim-version: [v7.4.2119, head]
vim-version: v7.4.2119
# vim-version: [v7.4.2119, head]
# vim-version: [v8.2.5172]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -48,49 +49,49 @@ jobs:
run: ./scripts/run-vader-tests.sh "${{ steps.vim.outputs.executable }}"
shell: bash

tests_neovim:
name: NeoVim
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
vim-version: [v0.3.2, head]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout kkoomen/vim-doge
uses: actions/checkout@v2

- name: Checkout junegunn/vader.vim
uses: actions/checkout@v2
with:
repository: junegunn/vader.vim
path: vader.vim

- name: Cache Cargo dependencies
uses: actions/cache@v2
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- run: ./scripts/build.sh
shell: bash

- name: Setup vim
uses: thinca/action-setup-vim@v1
id: vim
with:
vim_version: ${{ matrix.vim-version }}
vim_type: neovim

- name: Run tests
run: ./scripts/run-vader-tests.sh "${{ steps.vim.outputs.executable }}"
shell: bash

vint:
name: Linter
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- run: pip install vim-vint
- run: vint -s ./autoload ./plugin
# tests_neovim:
# name: NeoVim
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
# vim-version: [v0.3.2, head]
# runs-on: ${{ matrix.os }}
# steps:
# - name: Checkout kkoomen/vim-doge
# uses: actions/checkout@v2
#
# - name: Checkout junegunn/vader.vim
# uses: actions/checkout@v2
# with:
# repository: junegunn/vader.vim
# path: vader.vim
#
# - name: Cache Cargo dependencies
# uses: actions/cache@v2
# with:
# path: ~/.cargo
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
#
# - run: ./scripts/build.sh
# shell: bash
#
# - name: Setup vim
# uses: thinca/action-setup-vim@v1
# id: vim
# with:
# vim_version: ${{ matrix.vim-version }}
# vim_type: neovim
#
# - name: Run tests
# run: ./scripts/run-vader-tests.sh "${{ steps.vim.outputs.executable }}"
# shell: bash
#
# vint:
# name: Linter
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-python@v1
# - run: pip install vim-vint
# - run: vint -s ./autoload ./plugin
2 changes: 1 addition & 1 deletion autoload/doge.vim
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function! doge#generate(arg) abort
return 0
endif

let l:comment = l:parser_result['docblock']
let l:comment = copy(l:parser_result['docblock'])
let l:comment_lnum_insert_position = l:parser_result['line']

" Determine the line num where to insert the comment.
Expand Down
172 changes: 0 additions & 172 deletions autoload/doge/token.vim

This file was deleted.

3 changes: 2 additions & 1 deletion scripts/run-vader-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ while [ "$tries" -lt $max_retries ]; do

set -o pipefail

"$vim" -u $ROOT_DIR/test/vimrc "+Vader! $tests" 2>&1 | filter-vader-output | color-vader-output || exit_code=$?
# "$vim" -u $ROOT_DIR/test/vimrc "+Vader! $tests" 2>&1 | filter-vader-output | color-vader-output || exit_code=$?
"$vim" -u $ROOT_DIR/test/vimrc "+Vader! $tests" 2>&1 || exit_code=$?

set +o pipefail

Expand Down

0 comments on commit 0b45cb4

Please sign in to comment.