Match more Neogit buffers #28
Workflow file for this run
This file contains 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: Tests | |
on: [push, pull_request] | |
jobs: | |
luacheck: | |
name: Luacheck | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Prepare | |
run: | | |
sudo apt-get update | |
sudo add-apt-repository universe | |
sudo apt install luarocks -y | |
sudo luarocks install luacheck | |
- name: Run Luacheck | |
run: luacheck . | |
stylua: | |
name: StyLua | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Stylua | |
uses: JohnnyMorganz/stylua-action@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
version: v0.15.2 | |
args: --check . | |
typecheck: | |
name: typecheck | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: stevearc/nvim-typecheck-action@v1 | |
with: | |
path: lua | |
run_tests: | |
strategy: | |
matrix: | |
include: | |
- nvim_tag: v0.8.3 | |
- nvim_tag: v0.9.1 | |
name: Run tests | |
runs-on: ubuntu-22.04 | |
env: | |
NVIM_TAG: ${{ matrix.nvim_tag }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Neovim and dependencies | |
run: | | |
bash ./.github/workflows/install_nvim.sh | |
- name: Run tests | |
run: | | |
bash ./run_tests.sh | |
release: | |
name: release | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: | |
- luacheck | |
- stylua | |
- run_tests | |
- typecheck | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
release-type: simple | |
package-name: stickybuf.nvim | |
- uses: actions/checkout@v3 | |
- uses: rickstaa/action-create-tag@v1 | |
if: ${{ steps.release.outputs.release_created }} | |
with: | |
tag: stable | |
message: "Current stable release: ${{ steps.release.outputs.tag_name }}" | |
tag_exists_error: false | |
force_push_tag: true |