Skip to content

Commit

Permalink
feat: add luarocks release workflow (#37)
Browse files Browse the repository at this point in the history
* feat: add luarocks release workflow

* ci: don't add review checklist comment to update flake.lock PRs

* Update .github/workflows/release.yml

* Update .github/workflows/release.yml

* Update CHANGELOG.md
  • Loading branch information
mrcjkb authored Dec 22, 2023
1 parent 766f7c8 commit 3286c40
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
name: "Release"
on:
pull_request:
workflow_dispatch:
push:
tags:
- "*"
Expand All @@ -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

2 changes: 1 addition & 1 deletion .github/workflows/review-checklist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
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).

## [1.1.0] - 2023-12-22

### 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 3286c40

Please sign in to comment.