Skip to content

Commit

Permalink
feat: add rockspec + luarocks release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Mar 10, 2023
1 parent 9ed836d commit 0b1ff6f
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 19 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Release"
on:
push:
tags:
- "*"

jobs:
luarocks-release:
runs-on: ubuntu-latest
name: LuaRocks upload
steps:
- name: Checkout
uses: actions/checkout@v3
- name: LuaRocks Upload
uses: nvim-neorocks/luarocks-tag-release@v3
env:
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
with:
dependencies: |
neotest
detailed_description: |
* Supports Cabal projects.
* Supports Stack projects.
* Parses Hspec `--match` filters for the cursor's position using TreeSitter.
* Parses Hspec test results and displays error messages as virtual text.
- name: GitHub Release
uses: ncipollo/release-action@v1
with:
bodyFile: "CHANGELOG.md"
allowUpdates: true

3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ 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
- Rockspec
- LuaRocks release workflow

## [0.4.0] - 2023-03-10
### Added
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
![Haskell](https://img.shields.io/badge/Haskell-5e5086?style=for-the-badge&logo=haskell&logoColor=white)

[![Nix build](https://github.com/MrcJkb/neotest-haskell/actions/workflows/nix-build.yml/badge.svg)](https://github.com/MrcJkb/neotest-haskell/actions/workflows/nix-build.yml)
[![LuaRocks](https://img.shields.io/luarocks/v/MrcJkb/neotest-haskell?logo=lua&color=purple)](https://luarocks.org/modules/MrcJkb/neotest-haskell)

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-)
Expand Down
38 changes: 19 additions & 19 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions neotest-haskell-scm-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
local MODREV, SPECREV = 'scm', '-1'
rockspec_format = '3.0'
package = 'neotest-haskell'
version = MODREV .. SPECREV

description = {
summary = 'A neotest adapter for Haskell',
detailed = [[
* Supports Cabal v2 projects.
* Supports Stack projects.
* Parses Hspec `--match` filters for the cursor's position using TreeSitter.
* Parses Hspec test results and displays error messages as virtual text.
]],
labels = { 'neovim', 'haskell', 'plugin', 'neotest', 'test' },
homepage = 'https://github.com/mrcjkb/neotest-haskell',
license = 'GPL-2.0',
}

dependencies = {
'lua >= 5.1',
'neotest',
}

source = {
url = 'git://github.com/mrcjkb/neotest-haskell',
}

build = {
type = 'builtin',
}

0 comments on commit 0b1ff6f

Please sign in to comment.