Skip to content

Run stop commands before activation of new scene with same camera, to… #59

Run stop commands before activation of new scene with same camera, to…

Run stop commands before activation of new scene with same camera, to… #59

Workflow file for this run

name: Run tests
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Build the Docker image
run: docker build .docker/alpine/ --tag vwout/obs-visca-control-test:lua-5.2
- name: Run linter
uses: addnab/docker-run-action@v3
with:
image: vwout/obs-visca-control-test:lua-5.2
options: -v ${{ github.workspace }}:/github/workspace
run: |
echo "Static luacheck libvisca.lua, obs-visca-control.lua"
luacheck --config .luacheckrc \
libvisca.lua \
obs-visca-control.lua
echo "Linting libvisca.lua, obs-visca-control.lua"
lualint -s libvisca.lua -s obs-visca-control.lua
- name: Bytecode verification
uses: addnab/docker-run-action@v3
with:
image: vwout/obs-visca-control-test:lua-5.2
options: -v ${{ github.workspace }}:/github/workspace
run: |
echo "Checking JIT bytecode for libvisca.lua"
luajit -bl libvisca.lua /dev/null
echo "Checking JIT bytecode for obs-visca-control.lua"
luajit -bl obs-visca-control.lua /dev/null
echo "Checking bytecode for libvisca.lua"
luac -p libvisca.lua
echo "Checking bytecode for obs-visca-control.lua"
luac -p obs-visca-control.lua
- name: Run unit tests
uses: addnab/docker-run-action@v3
with:
image: vwout/obs-visca-control-test:lua-5.2
options: -v ${{ github.workspace }}:/github/workspace
run: |
find test -name "*_test.lua" | xargs lunit
luacov obs-visca-control.lua libvisca.lua