Skip to content

Commit

Permalink
fix: attempt to speed up CI by skipping alternative provider/comparis…
Browse files Browse the repository at this point in the history
…on sitemap additions
  • Loading branch information
titanism committed Aug 27, 2024
1 parent ee36f90 commit 15bb7e9
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions test/web/sitemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

const ip = require('ip');
const isCI = require('is-ci');
const ms = require('ms');
const test = require('ava');
const undici = require('undici');
Expand Down Expand Up @@ -56,14 +57,16 @@ const keys = Object.keys(config.meta).filter((key) => {
return key;
});

// add all the alternatives (since it would be massive translation file addition otherwise)
for (const alternative of config.alternatives) {
keys.push(`/blog/best-${alternative.slug}-alternative`);
for (const a of config.alternatives) {
if (a.name === alternative.name) continue;
keys.push(
`/blog/${alternative.slug}-vs-${a.slug}-email-service-comparison`
);
if (!isCI) {
// add all the alternatives (since it would be massive translation file addition otherwise)
for (const alternative of config.alternatives) {
keys.push(`/blog/best-${alternative.slug}-alternative`);
for (const a of config.alternatives) {
if (a.name === alternative.name) continue;
keys.push(
`/blog/${alternative.slug}-vs-${a.slug}-email-service-comparison`
);
}
}
}

Expand Down

0 comments on commit 15bb7e9

Please sign in to comment.