Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: move non-windows ci.yml to correct location #32

Merged
merged 1 commit into from
Jan 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/postinstall/copy-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ 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')
})