Merge pull request #31 from mhiro2/feat/require-neovim-0.12 #73
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash -euo pipefail {0} | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Run StyLua check | |
| uses: JohnnyMorganz/stylua-action@76fd70c03e6340ceaf673366712db9b20560b402 # v5.0.0 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| version: latest | |
| args: --check . | |
| - name: Install selene | |
| run: | | |
| wget "https://github.com/Kampfkarren/selene/releases/download/${SELENE_VERSION}/selene-${SELENE_VERSION}-linux.zip" | |
| echo "$SHA256_CHECKSUM selene-${SELENE_VERSION}-linux.zip" > "selene-${SELENE_VERSION}-linux.zip.checksum" | |
| sha256sum --check "selene-${SELENE_VERSION}-linux.zip.checksum" | |
| unzip "selene-${SELENE_VERSION}-linux.zip" | |
| install -Dp selene "$HOME/.local/bin/selene" | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| env: | |
| SELENE_VERSION: "0.29.0" | |
| SHA256_CHECKSUM: "e2510f91826373dafb77e741b2df826ecfe4b94dfb20f8939809773ee4d53b6d" | |
| - name: Run Selene | |
| run: make selene | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| nvim_version: | |
| - stable | |
| - nightly | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up Neovim | |
| uses: rhysd/action-setup-vim@febef33995d6649302e9d88dda81e071b68f16a7 # v1.6.1 | |
| with: | |
| neovim: true | |
| version: ${{ matrix.nvim_version }} | |
| - name: Run tests | |
| run: make test |