Skip to content

Commit

Permalink
ci: skip generate step in tests on CI
Browse files Browse the repository at this point in the history
since we already run build before the test step.
  • Loading branch information
JLHwung committed Nov 6, 2024
1 parent 346ce3b commit 4ffd81d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/tests.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
'use strict';

const resources = require('../data/resources.js');
const generateData = require('../index.js');

// Generate the data for the oldest and newest available Unicode version
const oldest = resources[0].version;
generateData(oldest);
const newest = resources.pop().version;
generateData(newest);

if (!process.env.CI) {
const generateData = require('../index.js');
// Generate the data for the oldest and newest available Unicode version
generateData(oldest);
generateData(newest);
}

const { suite, test } = require("node:test");

Expand Down

0 comments on commit 4ffd81d

Please sign in to comment.