From b9c8279bd4eeabaabd78b5088184107527207f5e Mon Sep 17 00:00:00 2001 From: Yegor Lukash Date: Fri, 17 Jul 2026 07:57:04 +0200 Subject: [PATCH] Add CI: shellcheck and tests on ubuntu and macos --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0d41b43 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +# a UTF-8 locale with real collation tables: on macOS this is what makes +# awk's == collapse all Cyrillic letters (the trap mirror.awk works around); +# runners default to C/C.UTF-8 where that behavior would not reproduce +env: + LC_ALL: en_US.UTF-8 + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: make lint + + test: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - name: Install tmux + run: | + if [ "$RUNNER_OS" = "macOS" ]; then + brew install tmux + else + sudo apt-get update && sudo apt-get install -y tmux + fi + - run: make test diff --git a/README.md b/README.md index 488b192..d133ea5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # tmux-langmap +[![CI](https://github.com/lukashes/tmux-langmap/actions/workflows/ci.yml/badge.svg)](https://github.com/lukashes/tmux-langmap/actions/workflows/ci.yml) + Makes tmux bindings work from a Cyrillic keyboard layout, like Vim's `langmap` option does for Vim. At load the plugin reads your current bindings and duplicates each one onto the character the same physical key