From 8dd80bb221a330c7ca43c8faa1da1904029fb80d Mon Sep 17 00:00:00 2001 From: ell <77150506+ellraiser@users.noreply.github.com> Date: Mon, 29 Apr 2024 09:05:59 +0100 Subject: [PATCH] pull latest from source --- .github/workflows/main.yml | 8 +- classes/TestSuite.lua | 5 +- main.lua | 3 + tests/graphics.lua | 153 ++++++++++++++++++++++++++++++++++--- 4 files changed, 154 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 23a5b30..153867a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,12 +4,14 @@ on: [push, pull_request, workflow_dispatch] jobs: macos-latest: runs-on: macos-latest + env: + ALSOFT_CONF: resources/alsoft.conf steps: - name: Checkout Repo uses: actions/checkout@v4 - name: Download Love run: | - curl -L -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" --output love12.zip --url "https://api.github.com/repos/love2d/love/actions/artifacts/1348650151/zip" + curl -L -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" --output love12.zip --url "https://api.github.com/repos/love2d/love/actions/artifacts/1452893104/zip" 7z x love12.zip -o* 7z x love12/love-macos.zip -o* - name: Run Test Suite @@ -50,7 +52,7 @@ jobs: powershell.exe mesa\systemwidedeploy.cmd 1 - name: Download Love run: | - curl -L -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" --output love12.zip --url "https://api.github.com/repos/love2d/love/actions/artifacts/1348654247/zip" + curl -L -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" --output love12.zip --url "https://api.github.com/repos/love2d/love/actions/artifacts/1452898657/zip" 7z x love12.zip -o* 7z x love12/love-12.0-win64.zip -o* - name: Run Tests (opengl) @@ -147,7 +149,7 @@ jobs: uses: actions/checkout@v4 - name: Download Love run: | - curl -L -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" --output love12.zip --url "https://api.github.com/repos/love2d/love/actions/artifacts/1348653725/zip" + curl -L -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" --output love12.zip --url "https://api.github.com/repos/love2d/love/actions/artifacts/1452894921/zip" 7z x love12.zip -o* mv love12/love-*.AppImage love12/love12.AppImage ls love12 diff --git a/classes/TestSuite.lua b/classes/TestSuite.lua index 8a4d7c7..5a6b200 100644 --- a/classes/TestSuite.lua +++ b/classes/TestSuite.lua @@ -193,7 +193,7 @@ TestSuite = { tr.red { background: #d26666; color: #111; } tr.yellow { background: slategrey; } .wrap { max-width: 800px; padding-top: 30px; margin: auto; position: relative; } - .preview-wrap { display: inline-block; height: 80px; padding: 5px 0 0 5px; margin: 5px; background: rgba(0, 0, 0, 0.1); } + .preview-wrap { transition: none; display: inline-block; height: 80px; padding: 5px 0 0 5px; margin: 5px; background: rgba(0, 0, 0, 0.1); } .preview { width: 64px; height: 80px; float: left; margin-right: 10px; } .preview:nth-last-child(1) { margin-right: 5px; } .preview img { width: 100%; image-rendering: pixelated; } @@ -207,12 +207,13 @@ TestSuite = { .summary li:nth-child(1) { background: #2d9966; min-width: 70px; } .summary li:nth-child(2) { background: #d26666; min-width: 70px; } .summary li:nth-child(3) { background: slategrey; min-width: 70px; } - .summary li:nth-child(4) { background: #bbb; min-width: 60px; } + .summary li:nth-child(4) { background: #aaa; min-width: 60px; } .summary li.l0 { opacity: 0.2; } .renderer { position: absolute; top: 8px; right: 10px; color: #eee; } h1 { width: 100%; top: 0; position: absolute; height: 50px; left: 0; } table .icon.pass { position: relative; width: 8px; height: 8px; border-radius: 8px; margin-left: 6px; } table .icon.pass:after { content: '✓'; top: -3px; position: absolute; color: #2d9966; font-size: 12px; } + .preview-wrap:hover { transform: scale(2); background: #555; }