diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d8a0ae6..eec411e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,8 @@ +--- name: "Release" on: + pull_request: + workflow_dispatch: push: tags: - "*" @@ -12,10 +15,22 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Fail if changelog entry does not exist + if: startsWith(github.ref, 'refs/tags/') run: grep -q "${{ github.ref_name }}" CHANGELOG.md + - name: LuaRocks Upload + uses: nvim-neorocks/luarocks-tag-release@v5 + env: + LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} + with: + dependencies: | + neotest + detailed_description: | + * Supports Cabal projects. + * Supports Stack projects. + * Parses Sydtest, Hspec and Tasty filters for the cursor's position using TreeSitter. + * Parses test results and displays error messages as virtual text. - name: GitHub Release uses: ncipollo/release-action@v1 with: bodyFile: "CHANGELOG.md" allowUpdates: true - diff --git a/.github/workflows/review-checklist.yml b/.github/workflows/review-checklist.yml index 5f291eb..013492b 100644 --- a/.github/workflows/review-checklist.yml +++ b/.github/workflows/review-checklist.yml @@ -14,7 +14,7 @@ jobs: with: script: | const body = context.payload.pull_request.body - if (body && body.startsWith(":robot: I have created a release *beep* *boop*")) { return; } + if (body && (body.startsWith(":robot: I have created a release *beep* *boop*") || body.startsWith("Automated changes"))) { return; } const { data: comments } = await github.rest.issues.listComments({ issue_number: context.issue.number, diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ce5fe0..33988cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.0] - 2023-12-22 + +### Added +- LuaRocks releases. + ## [1.0.2] - 2023-11-05 ### Fixed - Health check: Fix broken tree-sitter parser check. diff --git a/README.md b/README.md index 7d0ae47..565a725 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ [![GPL2 License][license-shield]][license-url] [![Issues][issues-shield]][issues-url] [![Build Status][ci-shield]][ci-url] +[![LuaRocks][luarocks-shield]][luarocks-url] [![All Contributors](https://img.shields.io/badge/all_contributors-8-orange.svg?style=for-the-badge)](#contributors-) @@ -283,6 +284,7 @@ This project follows the [all-contributors](https://github.com/all-contributors/ specification. Contributions of any kind welcome! + [neovim-shield]: https://img.shields.io/badge/NeoVim-%2357A143.svg?&style=for-the-badge&logo=neovim&logoColor=white [neovim-url]: https://neovim.io/ [lua-shield]: https://img.shields.io/badge/lua-%232C2D72.svg?style=for-the-badge&logo=lua&logoColor=white @@ -297,6 +299,5 @@ specification. Contributions of any kind welcome! [license-url]: https://github.com/mrcjkb/neotest-haskell/blob/master/LICENSE [ci-shield]: https://img.shields.io/github/actions/workflow/status/mrcjkb/neotest-haskell/nix-build.yml?style=for-the-badge [ci-url]: https://github.com/mrcjkb/neotest-haskell/actions/workflows/nix-build.yml - - - +[luarocks-shield]: https://img.shields.io/luarocks/v/MrcJkb/neotest-haskell?logo=lua&color=purple&style=for-the-badge +[luarocks-url]: https://luarocks.org/modules/MrcJkb/neotest-haskell