Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-reineke committed Oct 2, 2023
1 parent bfa739d commit 1f2c2a4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/lua_language_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ name: Run Lua Language Server check
on:
workflow_call:
inputs:
matrix:
lua_ls_version:
required: true
type: string
neovim_versions:
required: true
type: string

Expand All @@ -14,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
rev: ${{ fromJson(inputs.matrix) }}
rev: ${{ fromJson(inputs.neovim_versions) }}
steps:
- uses: actions/checkout@v3
- run: date +%F > todays-date
Expand All @@ -32,7 +35,7 @@ jobs:
uses: actions/cache@v3
with:
path: _lua-ls
key: 3.7.0
key: ${{ inputs.lua_ls_version }}
- name: Prepare
run: |
test -d _neovim || {
Expand All @@ -41,7 +44,7 @@ jobs:
}
test -d _lua-ls || {
mkdir -p _lua-ls
curl -sL "https://github.com/LuaLS/lua-language-server/releases/download/3.7.0/lua-language-server-3.7.0-linux-x64.tar.gz" | tar xzf - -C "${PWD}/_lua-ls"
curl -sL "https://github.com/LuaLS/lua-language-server/releases/download/${{ inputs.lua_ls_version }}/lua-language-server-${{ inputs.lua_ls_version }}-linux-x64.tar.gz" | tar xzf - -C "${PWD}/_lua-ls"
}
- name: Run check
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/nightly_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: Nightly Neovim check
# Checks LSP and unit tests against new Neovim nightly once a week

on:
schedule:
- cron: '30 21 * * 0' # 6:30 AM JST, Monday
workflow_dispatch:
# schedule:
# - cron: '30 21 * * 0' # 6:30 AM JST, Monday
# workflow_dispatch:
push:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -14,11 +15,12 @@ jobs:
tests:
uses: ./.github/workflows/tests.yml
with:
matrix: |
neovim_versions: |
[ "nightly" ]
lua-language-server:
uses: ./.github/workflows/lua_language_server.yml
with:
matrix: |
lua_ls_version: 3.7.0
neovim_versions: |
[ "nightly" ]
8 changes: 5 additions & 3 deletions .github/workflows/pr_check.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Pull request check

on:
pull_request:
# pull_request:
push:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -11,13 +12,14 @@ jobs:
tests:
uses: ./.github/workflows/tests.yml
with:
matrix: |
neovim_versions: |
[ "nightly", "v0.9.2" ]
lua-language-server:
uses: ./.github/workflows/lua_language_server.yml
with:
matrix: |
lua_ls_version: 3.7.0
neovim_versions: |
[ "nightly", "v0.9.2" ]
stylua:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Run tests
on:
workflow_call:
inputs:
matrix:
neovim_versions:
required: true
type: string

Expand All @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
rev: ${{ fromJson(inputs.matrix) }}
rev: ${{ fromJson(inputs.neovim_versions) }}
steps:
- uses: actions/checkout@v3
- run: date +%F > todays-date
Expand Down

0 comments on commit 1f2c2a4

Please sign in to comment.