Skip to content

Commit

Permalink
feat: add luarocks release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Dec 16, 2023
1 parent 1855ae4 commit d6bd9d7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: "Release"
on:
push:
Expand All @@ -13,9 +14,20 @@ jobs:
uses: actions/checkout@v4
- name: Fail if changelog entry does not exist
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

5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

## [Unreleased]

### Added
- LuaRocks releases.

## [1.0.2] - 2023-11-05
### Fixed
- Health check: Fix broken tree-sitter parser check.
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-8-orange.svg?style=for-the-badge)](#contributors-)
Expand Down Expand Up @@ -283,6 +284,7 @@ This project follows the [all-contributors](https://github.com/all-contributors/
specification. Contributions of any kind welcome!

<!-- MARKDOWN LNIKS & IMAGES -->
<!-- markdownlint-disable -->
[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
Expand All @@ -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
<!-- markdownlint-disable -->
<!-- [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 -->
[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

0 comments on commit d6bd9d7

Please sign in to comment.