Skip to content

Commit

Permalink
ope
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Jan 9, 2025
1 parent 0104cbb commit eb7d8f7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compat-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
strategy:
matrix:
packageManager: [npm, yarn, pnpm]
kind: [alpha, beta, stable]
kind: [alpha, beta, stable, false]

steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
Expand Down
20 changes: 18 additions & 2 deletions scripts/test-package-manager.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,21 @@ async function buildAll(tag) {
const packages = await gatherPackages(strategy.config);
const applied = await applyStrategy(config, strategy, packages, packages);

console.log(applied.public_pks);
/**
* The applied stategy is mostly based off release/strategy.json
* We want to change it dynamically for our test using the "tag"
*
* It's lies, as we're not changing the versions, but the release / build
* code has different behavior based on channel
*/
for (let [pkgName, config] of Object.entries(applied.public_pks)) {
applied.public_pks[pkgName] = {
...config,
stage: tag,
types: tag,
};
}

await generatePackageTarballs(config, packages, applied.public_pks);
}

Expand Down Expand Up @@ -233,7 +247,9 @@ async function main() {
`Expected passed arg, the packageManager (${packageManager}), to be one of ${[...SUPPORTED.values()].join(', ')}`
);

assert(TAGS.has(tag), `Expected passed arg, the tag (${tag}), to be one of ${[...TAGS.values()].join(', ')}`);
if (tag) {
assert(TAGS.has(tag), `Expected passed arg, the tag (${tag}), to be one of ${[...TAGS.values()].join(', ')}`);
}

await deleteTars();
await buildAll(tag);
Expand Down

0 comments on commit eb7d8f7

Please sign in to comment.