forked from zbirenbaum/copilot.lua
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (40 loc) · 1.35 KB
/
Copy pathci.yaml
File metadata and controls
46 lines (40 loc) · 1.35 KB
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
name: Tests
on: [push, pull_request]
jobs:
unit_tests:
name: unit tests
if: github.repository == 'AntoineGS/copilot.lua'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, ubuntu-24.04-arm, macos-latest, windows-2025]
rev: [nightly, v0.10.4, v0.11.0]
include:
- os: ubuntu-24.04
install-rg: sudo apt-get update && sudo apt-get install -y nodejs curl
- os: ubuntu-24.04-arm
install-rg: sudo apt-get update && sudo apt-get install -y nodejs curl
- os: macos-latest
install-rg: brew update && brew install node curl
- os: windows-2025
install-rg: choco install nodejs-lts curl
steps:
- uses: actions/checkout@v4
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.rev }}
- name: Prepare
run: |
${{ matrix.install-rg }}
mkdir deps
mkdir ./tests/logs
git clone --filter=blob:none https://github.com/echasnovski/mini.nvim deps/mini.nvim
mv ./tests/env.lua.ci ./tests/env.lua
- name: Run tests
env:
GH_COPILOT_TOKEN: ${{ secrets.GH_COPILOT_TOKEN }}
run: |
nvim --version
make test