| 1 |
--- |
| 2 |
name: Test fzf on macOS |
| 3 |
|
| 4 |
on: |
| 5 |
push: |
| 6 |
branches: [ master, devel ] |
| 7 |
pull_request: |
| 8 |
branches: [ master ] |
| 9 |
workflow_dispatch: |
| 10 |
|
| 11 |
permissions: |
| 12 |
contents: read |
| 13 |
|
| 14 |
jobs: |
| 15 |
build: |
| 16 |
runs-on: macos-latest |
| 17 |
steps: |
| 18 |
- uses: actions/checkout@v7 |
| 19 |
with: |
| 20 |
fetch-depth: 0 |
| 21 |
|
| 22 |
- name: Set up Go |
| 23 |
uses: actions/setup-go@v7 |
| 24 |
with: |
| 25 |
go-version: "1.23" |
| 26 |
|
| 27 |
- name: Setup Ruby |
| 28 |
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1 |
| 29 |
with: |
| 30 |
ruby-version: 3.0.0 |
| 31 |
|
| 32 |
- name: Install packages |
| 33 |
run: HOMEBREW_NO_INSTALL_CLEANUP=1 brew install fish zsh tmux shfmt |
| 34 |
|
| 35 |
- name: Install Ruby gems |
| 36 |
run: gem install --no-document minitest:5.14.2 rubocop:1.0.0 rubocop-minitest:0.10.1 rubocop-performance:1.8.1 |
| 37 |
|
| 38 |
- name: Rubocop |
| 39 |
run: rubocop --require rubocop-minitest --require rubocop-performance |
| 40 |
|
| 41 |
- name: Unit test |
| 42 |
run: make test |
| 43 |
|
| 44 |
- name: Integration test |
| 45 |
run: make install && ./install --all && LC_ALL=C tmux new-session -d && ruby test/test_go.rb --verbose |