-
-
Notifications
You must be signed in to change notification settings - Fork 75
96 lines (78 loc) · 2.38 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: nvim-metals ci
on:
push:
branches:
- main
pull_request:
paths-ignore:
- '**.txt'
- '**.md'
jobs:
lint-check:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup selene
run: |
wget "https://github.com/Kampfkarren/selene/releases/download/$VERSION/selene-$VERSION-linux.zip"
echo "$SHA256_CHECKSUM selene-$VERSION-linux.zip" > "selene-$VERSION-linux.zip.checksum"
sha256sum --check "selene-$VERSION-linux.zip.checksum"
unzip "selene-$VERSION-linux.zip"
install -Dp selene "$HOME/.local/bin/selene"
echo "$HOME/.local/bin" >> $GITHUB_PATH
env:
VERSION: "0.26.1"
# shashum -a 256 selene-<version>-linux.zip
SHA256_CHECKSUM: "406697af6a13027a0f95fd65a790ca0b496a28ede4d7355f4b04ebf1d640134e"
- name: Run selene
run: make lint
format-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run StyLua
uses: JohnnyMorganz/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: 0.20.0
args: --check lua/
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
neovim_version: ['v0.10.0', 'nightly']
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: "ckipp01/multiple-build-file-example"
path: "multiple-build-file-example"
- uses: actions/checkout@v4
with:
repository: "ckipp01/mill-minimal"
path: "mill-minimal"
- uses: actions/checkout@v4
with:
repository: "ckipp01/minimal-scala-cli-test"
path: "minimal-scala-cli-test"
- uses: coursier/setup-action@v1
with:
jvm: adoptium:17
apps: ""
- name: Setup neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.neovim_version }}
- name: Prepare plenary
run: |
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start
- name: Run setup tests
run: make test-setup
- name: Run tests
run: make test