ci: make tests dependent on lint #52
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: Linting and style checking | |
on: | |
- push | |
jobs: | |
luacheck: | |
name: Luacheck | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Prepare | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y luarocks | |
sudo luarocks install luacheck | |
- name: Lint | |
run: make lint_luacheck | |
stylua: | |
name: stylua | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Prepare | |
run: | | |
sudo apt-get update | |
sudo apt install -y nodejs npm | |
- name: Lint | |
run: "make lint_stylua" | |
env: | |
STYLUA: "npx @johnnymorganz/stylua-bin" |