diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..fe1d660 --- /dev/null +++ b/.github/workflows/release.yml @@ -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@v1.0.1 + env: + LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} + with: + dependencies: | + neotest + detailed_description: | + * 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. + - name: GitHub Release + uses: ncipollo/release-action@v1 + with: + bodyFile: "CHANGELOG.md" + allowUpdates: true + diff --git a/CHANGELOG.md b/CHANGELOG.md index e7d7a3c..10ea713 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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.2.2] - 2023-01-14 ### Fixed diff --git a/README.md b/README.md index 044b92c..21c9f3c 100644 --- a/README.md +++ b/README.md @@ -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](https://img.shields.io/badge/all_contributors-1-grey.svg?style=flat-square)](#contributors-) diff --git a/flake.lock b/flake.lock index b1d5ac1..603db5e 100644 --- a/flake.lock +++ b/flake.lock @@ -3,11 +3,11 @@ "flake-compat": { "flake": false, "locked": { - "lastModified": 1668681692, - "narHash": "sha256-Ht91NGdewz8IQLtWZ9LCeNXMSXHUss+9COoqu6JLmXU=", + "lastModified": 1673956053, + "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", "owner": "edolstra", "repo": "flake-compat", - "rev": "009399224d5e398d03b22badca40a37ac85412a1", + "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", "type": "github" }, "original": { @@ -19,11 +19,11 @@ "flake-compat_2": { "flake": false, "locked": { - "lastModified": 1668681692, - "narHash": "sha256-Ht91NGdewz8IQLtWZ9LCeNXMSXHUss+9COoqu6JLmXU=", + "lastModified": 1673956053, + "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", "owner": "edolstra", "repo": "flake-compat", - "rev": "009399224d5e398d03b22badca40a37ac85412a1", + "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", "type": "github" }, "original": { @@ -71,11 +71,11 @@ "neotest": { "flake": false, "locked": { - "lastModified": 1673033932, - "narHash": "sha256-tBcEmsvMLBwBDcapkosnwuHL48g1lMTXvZ3J34JkNDo=", + "lastModified": 1674639608, + "narHash": "sha256-vGgKQ0loiFSzxepz4qBc9asxwMgraO3zPicaNOScSA8=", "owner": "nvim-neotest", "repo": "neotest", - "rev": "fee5ce9bdc3dff4706a29b012e75025ab376becb", + "rev": "392808a91d6ee28d27cbfb93c9fd9781759b5d00", "type": "github" }, "original": { @@ -86,11 +86,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1672997035, - "narHash": "sha256-DNaNjsGMRYefBTAxFIrVOB2ok477cj1FTpqnu/mKRf4=", + "lastModified": 1675309347, + "narHash": "sha256-D3CQ6HRDT2m3XJlrzb5jKq4vNFR5xFTEFKC7iSjlFpM=", "owner": "nixos", "repo": "nixpkgs", - "rev": "f1ffcf798e93b169321106a4aef79526a2b4bd0a", + "rev": "006c3bd4dd2f5d1d2094047f307cbf9e2b73d9c5", "type": "github" }, "original": { @@ -102,16 +102,16 @@ }, "nixpkgs-stable": { "locked": { - "lastModified": 1671271954, - "narHash": "sha256-cSvu+bnvN08sOlTBWbBrKaBHQZq8mvk8bgpt0ZJ2Snc=", + "lastModified": 1673800717, + "narHash": "sha256-SFHraUqLSu5cC6IxTprex/nTsI81ZQAtDvlBvGDWfnA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "d513b448cc2a6da2c8803e3c197c9fc7e67b19e3", + "rev": "2f9fd351ec37f5d479556cd48be4ca340da59b8f", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixos-22.05", + "ref": "nixos-22.11", "repo": "nixpkgs", "type": "github" } @@ -119,11 +119,11 @@ "packer-nvim": { "flake": false, "locked": { - "lastModified": 1671356027, - "narHash": "sha256-IIokssVOGFf5/pZQ4gRCPV5ktWPDfCCKJb5Ux1DrKok=", + "lastModified": 1673481162, + "narHash": "sha256-YAhAFiR31aGl2SEsA/itP+KgkLyV58EJEwosdc+No9s=", "owner": "wbthomason", "repo": "packer.nvim", - "rev": "dac4088c70f4337c6c40d1a2751266a324765797", + "rev": "1d0cf98a561f7fd654c970c49f917d74fafe1530", "type": "github" }, "original": { @@ -135,11 +135,11 @@ "plenary-nvim": { "flake": false, "locked": { - "lastModified": 1673030871, - "narHash": "sha256-7EsquOLB7gfN2itfGFJZYKwEXBmP0xMKEOdyyjOweHg=", + "lastModified": 1675102817, + "narHash": "sha256-XxyAeN+kt8Cvt8aklVXyjqS4QRaP/0RE6+tPdoGGxPc=", "owner": "nvim-lua", "repo": "plenary.nvim", - "rev": "9d81624fbcedd3dd43b38d7e13a1e7b3f873d8cd", + "rev": "9a0d3bf7b832818c042aaf30f692b081ddd58bd9", "type": "github" }, "original": { @@ -159,11 +159,11 @@ "nixpkgs-stable": "nixpkgs-stable" }, "locked": { - "lastModified": 1672912243, - "narHash": "sha256-QnQeKUjco2kO9J4rBqIBPp5XcOMblIMnmyhpjeaJBYc=", + "lastModified": 1675337566, + "narHash": "sha256-jmLBTQcs1jFOn8h1Q5b5XwPfYgFOtcZ3+mU9KvfC6Js=", "owner": "cachix", "repo": "pre-commit-hooks.nix", - "rev": "a4548c09eac4afb592ab2614f4a150120b29584c", + "rev": "5668d079583a5b594cb4e0cc0e6d84f1b93da7ae", "type": "github" }, "original": { diff --git a/neotest-haskell-scm-1.rockspec b/neotest-haskell-scm-1.rockspec new file mode 100644 index 0000000..6cd34f0 --- /dev/null +++ b/neotest-haskell-scm-1.rockspec @@ -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', +}