diff --git a/.gitea/workflows/quality.yml b/.gitea/workflows/quality.yml index 22e510d..4fb8cfb 100644 --- a/.gitea/workflows/quality.yml +++ b/.gitea/workflows/quality.yml @@ -53,7 +53,7 @@ jobs: npm run test:photo npm run test:sleek - name: Upload accessibility screenshots - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 if: always() with: name: a11y-screenshots diff --git a/tests/ci-workflow.test.js b/tests/ci-workflow.test.js index 07fdb83..83059ea 100644 --- a/tests/ci-workflow.test.js +++ b/tests/ci-workflow.test.js @@ -21,6 +21,8 @@ test('Gitea CI gates pull requests and main with the reproducible quality suite' assert.match(workflow, /npm run test:ui/); assert.match(workflow, /npm run test:photo/); assert.match(workflow, /npm run test:sleek/); + assert.match(workflow, /uses: actions\/upload-artifact@v3/); + assert.doesNotMatch(workflow, /uses: actions\/upload-artifact@v4/); assert.match(workflow, /npm audit --audit-level=high/); assert.match(workflow, /npm run check:syntax/); assert.match(workflow, /npm run check:diff/);