Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v4

- name: Create build image name
run: |
echo "IMAGENAME_LC=${IMAGENAME,,}" >> ${GITHUB_ENV}
env:
IMAGENAME: '${{ github.repository }}'

- name: Build the Docker image
run: docker build .docker/alpine/ --tag ${{ github.repository }}-test:lua-5.2
run: docker build .docker/alpine/ --tag ${IMAGENAME_LC}-test:lua-5.2

- name: Run linter
uses: addnab/docker-run-action@v3
with:
image: ${{ github.repository }}-test:lua-5.2
image: ${{ env.IMAGENAME_LC }}-test:lua-5.2
options: -v ${{ github.workspace }}:/github/workspace
run: |
echo "Static luacheck ljsocket.lua"
Expand All @@ -28,7 +34,7 @@ jobs:
- name: Bytecode verification
uses: addnab/docker-run-action@v3
with:
image: ${{ github.repository }}-test:lua-5.2
image: ${{ env.IMAGENAME_LC }}-test:lua-5.2
options: -v ${{ github.workspace }}:/github/workspace
run: |
echo "Checking JIT bytecode for ljsocket.lua"
Expand All @@ -39,7 +45,7 @@ jobs:
- name: Run unit tests
uses: addnab/docker-run-action@v3
with:
image: ${{ github.repository }}-test:lua-5.2
image: ${{ env.IMAGENAME_LC }}-test:lua-5.2
options: -v ${{ github.workspace }}:/github/workspace
run: |
lunit -i `which luajit` $(find test -name "*_test.lua")
Expand Down
Loading