diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..6d779db --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: Test + +on: + - push + - pull_request + - workflow_dispatch + +jobs: + run-busted: + runs-on: ubuntu-latest + concurrency: + group: ${{ github.workflow }}-${{ github.sha }} + cancel-in-progress: true + steps: + - uses: actions/checkout@v4 + with: + submodules: "recursive" + + - uses: jkl1337/gh-actions-lua@v11 + with: + # luaVersion: "5.1" + luaVersion: "luajit-git" + - uses: jkl1337/gh-actions-luarocks@v5 + with: + luarocksVersion: "3.12.0" + - name: install dependencies + run: | + luarocks install busted + luarocks install luautf8 + luarocks install luafilesystem + + - name: run unit tests + run: busted spec -o utfTerminal