-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.27 KB
/
Copy pathvalidate.yml
File metadata and controls
49 lines (42 loc) · 1.27 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
47
48
49
name: Validate Neovim Config
on:
push:
branches: ["**"]
pull_request:
branches: [main]
jobs:
validate:
name: Build & validate Neovim
runs-on: ubuntu-latest
# Skip docs: and chore: commits on push; always run on pull requests
if: |
github.event_name == 'pull_request' ||
(
!startsWith(github.event.head_commit.message, 'docs:') &&
!startsWith(github.event.head_commit.message, 'chore:')
)
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build devcontainer image
uses: docker/build-push-action@v6
with:
context: .
file: .devcontainer/Dockerfile
tags: nvim-config:ci
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Check Neovim version
run: docker run --rm nvim-config:ci nvim --version
- name: Run all Neovim validations
run: |
docker run --rm \
--network=host \
-e CI=true \
-v "${{ github.workspace }}:/home/dev/.config/nvim:ro" \
nvim-config:ci \
bash /home/dev/.config/nvim/test/ci_validate.sh
timeout-minutes: 30