ci: use valid Gitea E2E package name
Some checks failed
Gitea Runner E2E Publish / publish (push) Failing after 4m28s
Some checks failed
Gitea Runner E2E Publish / publish (push) Failing after 4m28s
This commit is contained in:
parent
adfd3363f2
commit
f4b92a4634
@ -37,25 +37,25 @@ jobs:
|
||||
- name: Verify package returned by Gitea
|
||||
working-directory: packages/_runner-e2e-test
|
||||
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"
|
||||
- name: Verify pnpm install and require works
|
||||
run: |
|
||||
mkdir -p /tmp/runner-e2e-consumer && cd /tmp/runner-e2e-consumer
|
||||
cp /run/secrets/gitea_publish_npmrc .npmrc
|
||||
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
|
||||
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"
|
||||
- name: Verify local pack matches Gitea stored tarball shasum
|
||||
working-directory: packages/_runner-e2e-test
|
||||
run: |
|
||||
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}')
|
||||
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 "GITEA_SHA=$GITEA_SHA"
|
||||
[ "$LOCAL_SHA" = "$GITEA_SHA" ] || { echo "FAIL: pnpm pack tarball does not match Gitea stored tarball"; exit 1; }
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
ok: true,
|
||||
packageName: '@bytelyst/_runner-e2e-test',
|
||||
packageName: '@bytelyst/runner-e2e-test',
|
||||
};
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@bytelyst/_runner-e2e-test",
|
||||
"name": "@bytelyst/runner-e2e-test",
|
||||
"version": "0.0.1",
|
||||
"description": "Throwaway package for E2E validating the Hostinger Gitea runner. Safe to delete.",
|
||||
"main": "index.js",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user