diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f23b9e..175457e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,7 +59,4 @@ jobs: run: npm i --prefer-online --no-fund --no-audit -g npm@latest - run: npm -v - run: npm i - - run: | - git config --global user.email "you@example.com" - git config --global user.name "Your Name" - npm test --ignore-scripts + - run: npm test --ignore-scripts diff --git a/test/clone.js b/test/clone.js index 89884d1..3a5d268 100644 --- a/test/clone.js +++ b/test/clone.js @@ -235,6 +235,8 @@ t.test('setup aditional tests', t => { const git = (...cmd) => spawnGit(cmd, { cwd: regularRepo }) const write = (f, c) => fs.writeFileSync(`${regularRepo}/${f}`, c) return git('init', '-b', 'main') + .then(() => git('config', 'user.name', 'pacotedev')) + .then(() => git('config', 'user.email', 'i+pacotedev@izs.me')) .then(() => write('foo', 'bar')) .then(() => git('add', 'foo')) .then(() => git('commit', '-m', 'foobar')) diff --git a/test/is-clean.js b/test/is-clean.js index 4736f62..a7e875e 100644 --- a/test/is-clean.js +++ b/test/is-clean.js @@ -10,6 +10,8 @@ const write = (file, data) => writeFile(resolve(repo, file), data) t.test('create git repo', t => spawn(['init'], { cwd: repo }) + .then(() => spawn(['config', 'user.name', 'pacotedev'], { cwd: repo })) + .then(() => spawn(['config', 'user.email', 'i+pacotedev@izs.me'], { cwd: repo })) .then(() => write('hello', 'world'))) t.test('dir is clean, just one unknown file', t =>