Skip to content

Commit

Permalink
Merge pull request #32 from julienvincent/jv/test-stable-and-nightly
Browse files Browse the repository at this point in the history
Configure to run tests against stable and nightly
  • Loading branch information
julienvincent committed Sep 22, 2023
2 parents c15dbc6 + fc24158 commit 57b352e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ jobs:
test:
name: Test
runs-on: ubuntu-20.04
strategy:
matrix:
channel: [stable] #, nightly]
steps:
- uses: actions/checkout@v2

- uses: extractions/setup-just@v1

- name: Prepare ${{ matrix.channel }}
run: just prepare ${{ matrix.channel }}

- name: Run Tests
run: just test
6 changes: 3 additions & 3 deletions Justfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
prepare:
prepare channel="stable":
#!/usr/bin/env bash
test -d .build/nvim || {
mkdir -p ./.build/nvim

os=$(uname)
if [[ "$os" == "Darwin" ]]; then
curl -L https://github.com/neovim/neovim/releases/download/nightly/nvim-macos.tar.gz > ./.build/nvim-macos.tar.gz
curl -L https://github.com/neovim/neovim/releases/download/{{ channel }}/nvim-macos.tar.gz > ./.build/nvim-macos.tar.gz
xattr -c ./.build/nvim-macos.tar.gz
tar xzf ./.build/nvim-macos.tar.gz -C ./.build/nvim --strip-components=1
rm ./.build/nvim-macos.tar.gz
elif [[ "$os" == "Linux" ]]; then
curl -L https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz > ./.build/nvim-linux64.tar.gz
curl -L https://github.com/neovim/neovim/releases/download/{{ channel }}/nvim-linux64.tar.gz > ./.build/nvim-linux64.tar.gz
tar xzf ./.build/nvim-linux64.tar.gz -C ./.build/nvim --strip-components=1
rm ./.build/nvim-linux64.tar.gz
else
Expand Down

0 comments on commit 57b352e

Please sign in to comment.