-
Notifications
You must be signed in to change notification settings - Fork 11
35 lines (33 loc) · 970 Bytes
/
ci.yml
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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: 0 0 * * *
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # t/blame.vim requires all commits.
submodules: true
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Set up Vim
uses: thinca/action-setup-vim@v2
with:
vim_version: ${{ github.event_name == 'schedule' && 'head' || 'v8.2.3446' }}
vim_type: vim
download: never # For some reason 'available' doesn't build from source as a fallback.
- name: Set up Git
run: |
git config --global user.email 'ci@example.com'
git config --global user.name 'CI'
git config --global init.defaultBranch 'master'
- name: Run tests
run: rake ci