Merge pull request #471 from mrjones2014/automation/update-flake-depe… #771
This file contains 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: Run All Checks | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
check-lua: | |
name: Run Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup 'lua' | |
uses: leafo/gh-actions-lua@v8 | |
with: | |
luaVersion: "5.1.5" | |
- name: Run Stylua | |
uses: JohnnyMorganz/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --check lua/ tests/ | |
version: 0.15.2 | |
- name: Run Luacheck | |
uses: lunarmodules/luacheck@v1 | |
with: | |
args: lua/legendary/ tests/ | |
- name: Install Neovim | |
uses: rhysd/action-setup-vim@v1 | |
with: | |
neovim: true | |
version: nightly | |
- name: Checkout Plenary | |
uses: actions/checkout@v3 | |
with: | |
repository: nvim-lua/plenary.nvim | |
path: vendor/plenary.nvim | |
- name: Checkout Luassert | |
uses: actions/checkout@v3 | |
with: | |
repository: Olivine-Labs/luassert | |
path: vendor/luassert | |
- name: Run Unit Tests | |
run: make test |