-
Notifications
You must be signed in to change notification settings - Fork 27
60 lines (51 loc) · 1.26 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Tests
on:
push:
pull_request:
workflow_dispatch:
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
nvim-version:
- stable
- nightly
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install Neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.nvim-version }}
- uses: Julian/setup-lean@v1
- uses: extractions/setup-just@v2
- name: Run tests
run: just test
env:
TEST_SEQUENTIAL: 1
release:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
needs: ci
runs-on: ubuntu-latest
permissions:
attestations: write
contents: write
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Upload to LuaRocks
uses: nvim-neorocks/luarocks-tag-release@v7
env:
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
- name: Create a GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true