Skip to content

Commit 8836ed5

Browse files
committed
ci: various fixes
- add dependabot for automatic action version bumps - Use action-setup-vim to install neovim since the debian package doesn't exists anymore - Use concurrency to cancel unnecessary work - Enable CI on pull requests
1 parent 75b0318 commit 8836ed5

3 files changed

Lines changed: 23 additions & 8 deletions

File tree

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
commit-message:
8+
prefix: "ci"

.github/workflows/build-and-test.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1-
on: [push]
1+
on:
2+
push:
3+
branches:
4+
- 'master'
5+
pull_request:
26

37
name: build-and-test
48

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
11+
cancel-in-progress: true
12+
513
jobs:
614
check:
715
name: Build and Check
816
runs-on: ubuntu-latest
917
steps:
10-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1119
- uses: actions/cache@v3
1220
with:
1321
path: |
@@ -19,10 +27,10 @@ jobs:
1927
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
2028

2129
- name: Install Neovim
22-
shell: bash
23-
run: |
24-
wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.deb -O /tmp/nvim.deb
25-
sudo dpkg -i /tmp/nvim.deb
30+
uses: rhysd/action-setup-vim@v1
31+
with:
32+
neovim: true
33+
version: nightly
2634

2735
- name: Install plenary.nvim (for testing)
2836
run: |

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ on:
55
tags:
66
- v*
77

8-
98
jobs:
109
release-image:
1110
name: Release latest version
1211
runs-on: ubuntu-latest
1312
steps:
14-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1514
- uses: actions/cache@v3
1615
with:
1716
path: |

0 commit comments

Comments
 (0)