Skip to content

Commit

Permalink
fix: move non-windows ci.yml to correct location
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Jan 13, 2022
1 parent e4140cd commit 72b2f29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/postinstall/copy-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const copyContent = async (path, rootPath, config) => {
await copyFiles(rootPath, repoFiles)
if (!config.windowsCI) {
// copyFiles already did the mkdir so we can just fs.copyFile now
await fs.copyFile(join(contentDir, 'ci-no-windows.yml'), join(rootPath, 'ci.yml'))
await fs.copyFile(join(contentDir, 'ci-no-windows.yml'), join(rootPath, '.github/workflows/ci.yml'))
}
}
return
Expand Down
2 changes: 1 addition & 1 deletion test/postinstall/copy-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ t.test('no windows ci', async (t) => {
const root = t.testdir(pkgWithNoWindowsCI)
const config = await getConfig(root)
await copyContent(root, root, config)
const target = join(root, 'ci.yml')
const target = join(root, '.github/workflows/ci.yml')
const contents = await fs.readFile(target, 'utf8')
await t.notMatch(/windows/, contents, 'no windows ci')
})

0 comments on commit 72b2f29

Please sign in to comment.