ci: use valid Gitea E2E package name
Some checks failed
Gitea Runner E2E Publish / publish (push) Failing after 4m28s

This commit is contained in:
root 2026-05-25 05:11:31 +00:00
parent adfd3363f2
commit f4b92a4634
3 changed files with 7 additions and 7 deletions

View File

@ -37,25 +37,25 @@ jobs:
- name: Verify package returned by Gitea - name: Verify package returned by Gitea
working-directory: packages/_runner-e2e-test working-directory: packages/_runner-e2e-test
run: | run: |
npm view "@bytelyst/_runner-e2e-test@$TEST_VERSION" version --registry https://gitea.bytelyst.com/api/packages/bytelyst/npm/ | grep -qx "$TEST_VERSION" npm view "@bytelyst/runner-e2e-test@$TEST_VERSION" version --registry https://gitea.bytelyst.com/api/packages/bytelyst/npm/ | grep -qx "$TEST_VERSION"
echo "PASS: version in Gitea" echo "PASS: version in Gitea"
- name: Verify pnpm install and require works - name: Verify pnpm install and require works
run: | run: |
mkdir -p /tmp/runner-e2e-consumer && cd /tmp/runner-e2e-consumer mkdir -p /tmp/runner-e2e-consumer && cd /tmp/runner-e2e-consumer
cp /run/secrets/gitea_publish_npmrc .npmrc cp /run/secrets/gitea_publish_npmrc .npmrc
cat > package.json <<JSON cat > package.json <<JSON
{ "name": "consumer", "version": "1.0.0", "dependencies": { "@bytelyst/_runner-e2e-test": "$TEST_VERSION" } } { "name": "consumer", "version": "1.0.0", "dependencies": { "@bytelyst/runner-e2e-test": "$TEST_VERSION" } }
JSON JSON
pnpm install --no-frozen-lockfile pnpm install --no-frozen-lockfile
node -e "const m=require('@bytelyst/_runner-e2e-test'); console.log(m); process.exit(m.ok?0:1);" node -e "const m=require('@bytelyst/runner-e2e-test'); console.log(m); process.exit(m.ok?0:1);"
echo "PASS: install + require works" echo "PASS: install + require works"
- name: Verify local pack matches Gitea stored tarball shasum - name: Verify local pack matches Gitea stored tarball shasum
working-directory: packages/_runner-e2e-test working-directory: packages/_runner-e2e-test
run: | run: |
pnpm pack --pack-destination /tmp pnpm pack --pack-destination /tmp
TARBALL=$(ls /tmp/bytelyst-_runner-e2e-test-*.tgz) TARBALL=$(ls /tmp/bytelyst-runner-e2e-test-*.tgz)
LOCAL_SHA=$(sha1sum "$TARBALL" | awk '{print $1}') LOCAL_SHA=$(sha1sum "$TARBALL" | awk '{print $1}')
GITEA_SHA=$(npm view "@bytelyst/_runner-e2e-test@$TEST_VERSION" dist.shasum --registry https://gitea.bytelyst.com/api/packages/bytelyst/npm/) GITEA_SHA=$(npm view "@bytelyst/runner-e2e-test@$TEST_VERSION" dist.shasum --registry https://gitea.bytelyst.com/api/packages/bytelyst/npm/)
echo "LOCAL_SHA=$LOCAL_SHA" echo "LOCAL_SHA=$LOCAL_SHA"
echo "GITEA_SHA=$GITEA_SHA" echo "GITEA_SHA=$GITEA_SHA"
[ "$LOCAL_SHA" = "$GITEA_SHA" ] || { echo "FAIL: pnpm pack tarball does not match Gitea stored tarball"; exit 1; } [ "$LOCAL_SHA" = "$GITEA_SHA" ] || { echo "FAIL: pnpm pack tarball does not match Gitea stored tarball"; exit 1; }

View File

@ -1,4 +1,4 @@
module.exports = { module.exports = {
ok: true, ok: true,
packageName: '@bytelyst/_runner-e2e-test', packageName: '@bytelyst/runner-e2e-test',
}; };

View File

@ -1,5 +1,5 @@
{ {
"name": "@bytelyst/_runner-e2e-test", "name": "@bytelyst/runner-e2e-test",
"version": "0.0.1", "version": "0.0.1",
"description": "Throwaway package for E2E validating the Hostinger Gitea runner. Safe to delete.", "description": "Throwaway package for E2E validating the Hostinger Gitea runner. Safe to delete.",
"main": "index.js", "main": "index.js",