Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Migrate to GitHub Actions #131

Merged
merged 3 commits into from
Apr 20, 2020
Merged

CI: Migrate to GitHub Actions #131

merged 3 commits into from
Apr 20, 2020

Conversation

ichizok
Copy link
Contributor

@ichizok ichizok commented Apr 18, 2020

vim-jp/vital.vim#701 から拝借しました。
タスクは適当に分割しています。

Comment on lines 20 to 35
vimlint:
name: runner / vimlint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Vimlint
uses: tsuyoshicho/action-vimlint@v1
with:
github_token: ${{ secrets.github_token }}
- name: Vimlint-pr-review
uses: tsuyoshicho/action-vimlint@v1
if: github.event_name == 'pull_request'
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vimlint はなくてもいいです!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vimlint削除しました。

@@ -470,7 +470,7 @@ function! s:write_all() abort
silent edit `=dir.'/caw.vim'`
silent %delete _
silent read macros/after-ftplugin-template.vim
silent 1delete _
silent 1g/^$/delete _
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

純粋な疑問なんですが :read で1行目に空行以外が入ることってありましたっけ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vim を -e オプション付きで実行すると1行目が空行にならない (:read したファイルと同内容になる) ので、-e あり/なし 両対応にしています。

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

了解です 🙆‍♂️

run: |
rm -rf after/ftplugin/
bash -x macros/generate-ftplugins.sh
test -z "$(git status -s | tee >(cat >&2))"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これも質問なんですが、 >(...) ってどういう意味でしたっけ。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

出力ファイルを cat >&2 へのパイプにしています。
git status -s の結果をログにも出したかったのでこのようにしています。

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

了解です 🙆‍♂️

@tyru
Copy link
Owner

tyru commented Apr 20, 2020

マージする順番ミスったかもしれませんが、コンフリクトしてるので修正お願いします:bow:

@ichizok
Copy link
Contributor Author

ichizok commented Apr 20, 2020

修正しました。

@tyru tyru merged commit 3c6b7d2 into tyru:master Apr 20, 2020
@ichizok ichizok deleted the feature/gh-actions branch April 20, 2020 04:16
@tyru
Copy link
Owner

tyru commented Apr 20, 2020

ありがとうございました!

@ichizok
Copy link
Contributor Author

ichizok commented Apr 20, 2020

マージコミットでAppVeyorがNGになっていますが、明示的に止める必要があるんでしょうか?

@tyru
Copy link
Owner

tyru commented Apr 20, 2020

@ichizok はい、ちょうど気になって色々試してたのですが、AppVeyor 側で止める必要があったみたいです(キャッシュがあって数分消えなかったですが無事消えました)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants