-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split check jobs and correctly use Lua 5.1
- Loading branch information
Showing
1 changed file
with
22 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ on: | |
pull_request: | ||
|
||
jobs: | ||
check: | ||
lua-check: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -21,22 +21,35 @@ jobs: | |
with: | ||
luaVersion: "5.1" | ||
|
||
- name: Install Luarocks | ||
uses: leafo/gh-actions-luarocks@v4 | ||
|
||
- name: Install and run Luacheck | ||
uses: nebularg/actions-luacheck@v1 | ||
with: | ||
files: . | ||
files: Database Localization Modules Questie.lua | ||
args: "--no-color -q" | ||
|
||
- name: Run Unit Tests | ||
uses: lunarmodules/[email protected] | ||
unit-tests: | ||
needs: lua-check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Lua | ||
uses: leafo/gh-actions-lua@v10 | ||
with: | ||
args: -p ".test.lua" . | ||
luaVersion: "5.1" | ||
|
||
- name: Install Luarocks | ||
uses: leafo/gh-actions-luarocks@v4 | ||
|
||
- name: Run Unit Tests | ||
run: | | ||
luarocks install busted | ||
busted -p ".test.lua" . | ||
publish: | ||
needs: check | ||
needs: unit-tests | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
|
||
runs-on: ubuntu-latest | ||
|