Skip to content

Commit 41e7239

Browse files
authored
ci: update runners and actions (#3551)
* ci: update runners and actions Update all GHA runners and actions to latest release. Also add latest stable (0.11.5 atm) to test matrix. * ci: add dependabot for GH actions
1 parent b4da76b commit 41e7239

File tree

5 files changed

+42
-20
lines changed

5 files changed

+42
-20
lines changed

.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: "weekly"
7+
commit-message:
8+
prefix: "ci"

.github/workflows/ci.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Tests
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
pull_request:
8+
branches:
9+
- "master"
10+
workflow_dispatch:
411

512
jobs:
613
unit_tests:
@@ -9,18 +16,18 @@ jobs:
916
strategy:
1017
fail-fast: false
1118
matrix:
12-
os: [ubuntu-22.04, macos-latest, windows-2022]
13-
rev: [nightly, v0.9.5, v0.10.0]
19+
os: [ubuntu-latest, macos-latest, windows-latest]
20+
rev: [nightly, stable, v0.9.5, v0.10.4]
1421
include:
15-
- os: ubuntu-22.04
22+
- os: ubuntu-latest
1623
install-rg: sudo apt-get update && sudo apt-get install -y ripgrep
1724
- os: macos-latest
1825
install-rg: brew update && brew install ripgrep
19-
- os: windows-2022
26+
- os: windows-latest
2027
install-rg: choco install ripgrep
2128

2229
steps:
23-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v5
2431

2532
- uses: rhysd/action-setup-vim@v1
2633
with:

.github/workflows/docgen.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
name: Generate docs
22

33
on:
4-
push:
5-
branches-ignore:
6-
- master
7-
pull_request_target:
4+
pull_request:
85
branches:
96
- master
7+
workflow_dispatch:
108

119
jobs:
1210
build-sources:
@@ -16,10 +14,10 @@ jobs:
1614
fail-fast: false
1715
matrix:
1816
include:
19-
- os: ubuntu-22.04
17+
- os: ubuntu-latest
2018
url: https://github.com/neovim/neovim/releases/download/v0.9.5/nvim-linux64.tar.gz
2119
steps:
22-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2321
- run: date +%F > todays-date
2422
- name: Restore cache for today's nightly.
2523
uses: actions/cache@v4

.github/workflows/lint.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
name: Linting and style checking
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
pull_request:
8+
branches:
9+
- "master"
10+
workflow_dispatch:
411

512
jobs:
613
luacheck:
714
name: Luacheck
8-
runs-on: ubuntu-22.04
15+
runs-on: ubuntu-latest
916
steps:
10-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v5
1118

1219
- name: Prepare
1320
run: |
@@ -20,9 +27,9 @@ jobs:
2027

2128
stylua:
2229
name: stylua
23-
runs-on: ubuntu-22.04
30+
runs-on: ubuntu-latest
2431
steps:
25-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@v5
2633
- uses: JohnnyMorganz/stylua-action@v4
2734
with:
2835
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ on:
33
push:
44
tags:
55
- '*'
6+
workflow_dispatch:
7+
68
jobs:
79
luarocks-upload:
8-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-latest
911
steps:
10-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v5
1113
- name: LuaRocks Upload
12-
uses: nvim-neorocks/luarocks-tag-release@v1.0.2
14+
uses: lumen-oss/luarocks-tag-release@v7
1315
env:
1416
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
1517
with:

0 commit comments

Comments
 (0)