From 7c7962fa436acf39d4815788fabd92d0ce362f5f Mon Sep 17 00:00:00 2001 From: "Stone C. Lasley" Date: Fri, 8 Aug 2025 16:34:51 -0600 Subject: [PATCH 1/3] ci: add build action --- .github/workflows/test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..0f2f9e6 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +name: Test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + neovim_version: ['stable', 'nightly'] + + steps: + - uses: actions/checkout@v4 + + - name: Install Neovim + uses: rhymond/setup-neovim@v1 + with: + neovim-version: ${{ matrix.neovim_version }} + + - name: Install Luarocks + run: | + sudo apt-get update + sudo apt-get install -y luarocks + + - name: Run tests + run: make test \ No newline at end of file From 376fb63c4ed80d9fe3e042ef9993022e7a9abde7 Mon Sep 17 00:00:00 2001 From: "Stone C. Lasley" Date: Fri, 8 Aug 2025 16:38:13 -0600 Subject: [PATCH 2/3] fix action name --- .github/workflows/test.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0f2f9e6..3c8fd81 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,14 +17,24 @@ jobs: - uses: actions/checkout@v4 - name: Install Neovim - uses: rhymond/setup-neovim@v1 + uses: rhysd/action-setup-vim@v1 with: - neovim-version: ${{ matrix.neovim_version }} + neovim: true + version: ${{ matrix.neovim_version }} - name: Install Luarocks run: | sudo apt-get update sudo apt-get install -y luarocks + - name: Install StyLua + run: | + curl -L https://github.com/JohnnyMorganz/StyLua/releases/latest/download/stylua-linux-x86_64.zip -o stylua.zip + unzip stylua.zip + sudo mv stylua /usr/local/bin/ + + - name: Lint Lua files + run: stylua --check . + - name: Run tests - run: make test \ No newline at end of file + run: make test From 407ee262cdb409a7e310874b95e5a01918eb34cb Mon Sep 17 00:00:00 2001 From: "Stone C. Lasley" Date: Fri, 8 Aug 2025 16:40:34 -0600 Subject: [PATCH 3/3] disable lint --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3c8fd81..ff52be2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,8 +33,8 @@ jobs: unzip stylua.zip sudo mv stylua /usr/local/bin/ - - name: Lint Lua files - run: stylua --check . + # - name: Lint Lua files + # run: stylua --check . - name: Run tests run: make test