refactor: get rid of the need for Plenary.Job #1085
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: nvim-metals ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths-ignore: | |
- '**.txt' | |
- '**.md' | |
jobs: | |
lint-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Setup selene | |
run: | | |
wget "https://github.com/Kampfkarren/selene/releases/download/$VERSION/selene-$VERSION-linux.zip" | |
echo "$SHA256_CHECKSUM selene-$VERSION-linux.zip" > "selene-$VERSION-linux.zip.checksum" | |
sha256sum --check "selene-$VERSION-linux.zip.checksum" | |
unzip "selene-$VERSION-linux.zip" | |
install -Dp selene "$HOME/.local/bin/selene" | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
env: | |
VERSION: "0.28.0" | |
# shashum -a 256 selene-<version>-linux.zip | |
SHA256_CHECKSUM: "5d8706751968486d46d120316b108154693052f75af60efb3dbf4d4cf9e4d902" | |
- name: Run selene | |
run: make lint | |
format-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run StyLua | |
uses: JohnnyMorganz/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
version: 2.1.0 | |
args: --check lua/ | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
neovim_version: ['v0.11.2', 'nightly'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/checkout@v4 | |
with: | |
repository: "ckipp01/multiple-build-file-example" | |
path: "multiple-build-file-example" | |
- uses: actions/checkout@v4 | |
with: | |
repository: "ckipp01/mill-minimal" | |
path: "mill-minimal" | |
- uses: actions/checkout@v4 | |
with: | |
repository: "ckipp01/minimal-scala-cli-test" | |
path: "minimal-scala-cli-test" | |
- uses: coursier/setup-action@v1 | |
with: | |
jvm: adoptium:21 | |
apps: "" | |
- name: Setup neovim | |
uses: rhysd/action-setup-vim@v1 | |
with: | |
neovim: true | |
version: ${{ matrix.neovim_version }} | |
- name: Install Lua | |
uses: leso-kn/gh-actions-lua@master | |
with: | |
luaVersion: "5.1" | |
- name: Install Luarocks | |
uses: hishamhm/gh-actions-luarocks@master | |
with: | |
luarocksVersion: "3.11.0" | |
- name: Clear nvim-metals cache | |
run: rm -rf ~/.cache/nvim/nvim-metals/ | |
- name: Run tests | |
run: make test |