-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (35 loc) · 869 Bytes
/
test.yaml
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
name: tests
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
paths:
- ".github/workflows/test.yaml"
- "Makefile"
- "lua/**"
- "tests/**"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: get year month
id: get_date
run: echo "year_month=$(date +'%Y%m')" >> $GITHUB_OUTPUT
- name: plugins cache
uses: actions/cache@v4
with:
path: .tests
# 月に一度のキャッシュクリア
key: ${{ runner.os }}-plugins-${{ hashFiles('tests/busted.lua') }}-${{ steps.get_date.outputs.year_month }}
- name: setup neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: nightly
- name: run tests
run: make test