Skip to content

Commit 1035ced

Browse files
authored
Merge branch 'main' into copilot/fix-b655beca-2c66-411d-a70a-3c31d530815d
2 parents 22296c0 + cac8e20 commit 1035ced

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: "Copilot Setup Steps"
2+
3+
# Automatically run the setup steps when they are changed to allow for easy validation, and
4+
# allow manual testing through the repository's "Actions" tab
5+
on:
6+
workflow_dispatch:
7+
push:
8+
paths:
9+
- .github/workflows/copilot-setup-steps.yml
10+
pull_request:
11+
paths:
12+
- .github/workflows/copilot-setup-steps.yml
13+
14+
jobs:
15+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
16+
copilot-setup-steps:
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
include:
22+
- os: ubuntu-latest
23+
url: https://github.com/neovim/neovim/releases/download/v0.11.0/nvim-linux-x86_64.tar.gz
24+
25+
# Set the permissions to the lowest permissions possible needed for your steps.
26+
# Copilot will be given its own token for its operations.
27+
permissions:
28+
# If you want to clone the repository as part of your setup steps, for example to install dependencies, you'll need the `contents: read` permission. If you don't clone the repository in your setup steps, Copilot will do this for you automatically after the steps complete.
29+
contents: read
30+
31+
# You can define any steps you want, and they will run before the agent starts.
32+
# If you do not check out your code, Copilot will do this for you.
33+
steps:
34+
- name: Checkout 🛎️
35+
uses: actions/checkout@v4
36+
37+
- name: Prepare 🏗️
38+
run: |
39+
sudo apt-get install ripgrep
40+
test -d _neovim || {
41+
mkdir -p _neovim
42+
curl -sL ${{ matrix.url }} | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
43+
}
44+
mkdir -p ~/.local/share/nvim/site/pack/vendor/start
45+
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start
46+
export PATH="${PWD}/_neovim/bin:${PATH}"
47+
export VIM="${PWD}/_neovim/share/nvim/runtime"
48+
nvim --version
49+

0 commit comments

Comments
 (0)