Skip to content

ci: build Debian and RPM packages #2

ci: build Debian and RPM packages

ci: build Debian and RPM packages #2

Workflow file for this run

name: checks
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: checks-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lua:
name: Lua quality gates
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Resolve Neovim version
id: nvim-version
shell: bash
run: |
version="$(bash scripts/ci-resolve-nvim-version.sh)"
echo "version=$version" >> "$GITHUB_OUTPUT"
- name: Cache Neovim
uses: actions/cache@v5
with:
path: ${{ runner.tool_cache }}/nvime-nvim/${{ steps.nvim-version.outputs.version }}
key: nvim-${{ runner.os }}-${{ runner.arch }}-${{ steps.nvim-version.outputs.version }}
- name: Install Neovim stable
shell: bash
env:
NVIME_NEOVIM_VERSION: ${{ steps.nvim-version.outputs.version }}
NVIME_NEOVIM_ROOT: ${{ runner.tool_cache }}/nvime-nvim/${{ steps.nvim-version.outputs.version }}
run: bash scripts/ci-install-nvim.sh
- name: Cache Lua tooling
uses: actions/cache@v5
with:
path: ${{ runner.tool_cache }}/nvime-lua-tools
key: lua-tools-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('scripts/ci-install-lua-tools.sh') }}
- name: Install Lua tooling
shell: bash
env:
NVIME_LUA_TOOL_ROOT: ${{ runner.tool_cache }}/nvime-lua-tools
run: bash scripts/ci-install-lua-tools.sh
- name: Check shell scripts
shell: bash
run: bash -n scripts/*.sh
- name: Check Lua syntax
shell: bash
run: bash scripts/ci-lua-syntax.sh
- name: Check Lua formatting
shell: bash
run: stylua --check .
- name: Lint Lua
shell: bash
run: selene .