-
Couldn't load subscription status.
- Fork 8
ci: create ci-bun.yml
#84
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
Changes from all commits
c8ae217
dc5398d
f78ed3a
cb1496c
65a842b
864514c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| name: ci-bun | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| pull_request: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| ci-bun: | ||
| uses: eslint/workflows/.github/workflows/ci-bun.yml@main |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,25 +27,26 @@ describe("ShellOps", () => { | |
|
|
||
| describe("getModifiedEnv()", () => { | ||
|
|
||
| it("should modify path correctly when on Windows", () => { | ||
| const env = ShellOps.getModifiedEnv("win32"); | ||
| if(process.platform === "win32") { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've just wrapped the test cases with an This is because Bun CI fails on Windows, particularly for the Unix tests. I suspect it's due to the Unix tests relying on a Unix-specific FYI, the previous CI doesn't include Windows environment tests; adding regular tests that target Windows will cause failures.
|
||
| it("should modify path correctly when on Windows", () => { | ||
| const env = ShellOps.getModifiedEnv("win32"); | ||
|
|
||
| assert.strictEqual(env.PATH, `${NODE_MODULES_PATH};${PATH}`); | ||
| }); | ||
|
|
||
| [ | ||
| "darwin", | ||
| "freebsd", | ||
| "linux", | ||
| "sunos" | ||
| ].forEach(platform => { | ||
| it(`(with ${platform}) should modify path correctly when on Unix OS`, () => { | ||
| const env = ShellOps.getModifiedEnv(platform); | ||
|
|
||
| assert.strictEqual(env.PATH, `${NODE_MODULES_PATH}:${PATH}`); | ||
| assert.strictEqual(env.PATH, `${NODE_MODULES_PATH};${PATH}`); | ||
| }); | ||
| }); | ||
|
|
||
| } else { | ||
| [ | ||
| "darwin", | ||
| "freebsd", | ||
| "linux", | ||
| "sunos" | ||
| ].forEach(platform => { | ||
| it(`(with ${platform}) should modify path correctly when on Unix OS`, () => { | ||
| const env = ShellOps.getModifiedEnv(platform); | ||
|
|
||
| assert.strictEqual(env.PATH, `${NODE_MODULES_PATH}:${PATH}`); | ||
| }); | ||
| }); | ||
| } | ||
| }); | ||
|
|
||
| describe("execSilent()", () => { | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added Windows and macOS tests for more robust testing.