Skip to content

Commit

Permalink
split testing to it's own workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz committed Nov 7, 2023
1 parent c36ef05 commit def5b3e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/busted.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Unit Tests

on: [pull_request, workflow_dispatch]

jobs:
test-lua:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@master

- name: Setup lua
uses: leafo/gh-actions-lua@v9
with:
luaVersion: "5.1"

- name: Setup ‘luarocks’
uses: leafo/gh-actions-luarocks@v4

- name: Setup dependencies
run: |
luarocks install busted
- name: Run test
uses: lunarmodules/[email protected]
with:
args: --run=ci
7 changes: 1 addition & 6 deletions .github/workflows/luacheck.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Code Style and Test
name: Code Style

on: [pull_request, workflow_dispatch]

Expand Down Expand Up @@ -35,8 +35,3 @@ jobs:
report_paths: 'report.xml'
check_name: 'junit-report'
annotate_notice: false

- name: Run test
uses: lunarmodules/[email protected]
with:
args: --run=ci

0 comments on commit def5b3e

Please sign in to comment.