This repository was archived by the owner on Apr 17, 2025. It is now read-only.
Merge pull request #469 from mrjones2014/automation/update-flake-depe… #770
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: 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/stylua-action@v1.1.2 | |
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 |