Skip to content

Moved library source to src directory #48

Moved library source to src directory

Moved library source to src directory #48

name: test-and-publish
on: [push, pull_request]
jobs:
# TODO: Tests don't seem to run for 5.1 and 5.2 due to some weirdness...
tests-51:
uses: ./.github/workflows/run-tests.yml
with:
lua-version: 5.1
tests-52:
uses: ./.github/workflows/run-tests.yml
with:
lua-version: 5.2
tests-53:
uses: ./.github/workflows/run-tests.yml
with:
lua-version: 5.3
tests-54:
uses: ./.github/workflows/run-tests.yml
with:
lua-version: 5.4
publish:
name: Publish to LuaRocks
runs-on: ubuntu-latest
needs: [tests-51, tests-52, tests-53, tests-54]
steps:
- uses: actions/checkout@main
- name: Install Lua/LuaJIT
uses: leafo/gh-actions-lua@v8.0.0
with:
luaVersion: 5.4
- name: Install LuaRocks
uses: leafo/gh-actions-luarocks@v4.0.0
- name: Install dkjson
run: |
luarocks install dkjson
- name: Publish to LuaRocks
run: |
luarocks upload lazylualinq-dev-1.rockspec --force --api-key=${{ secrets.LUAROCKS_API_KEY }}
if: ${{ github.ref == 'refs/heads/main' }}