Skip to content

Commit b16d7bf

Browse files
committed
Merge remote-tracking branch 'zephraph/support-toolchain-toml'
<actions-rs#209>
2 parents 88dc235 + 6bbb331 commit b16d7bf

File tree

6 files changed

+10201
-20
lines changed

6 files changed

+10201
-20
lines changed

__tests__/args.test.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,17 @@ describe("actions-rs/toolchain", () => {
7171

7272
expect(args.name).toBe("1.39.0");
7373
});
74+
75+
it("supports toml override file", function () {
76+
const rustToolchainFile = tempWriteSync(`
77+
[toolchain]
78+
channel = "stable"
79+
`);
80+
81+
const args = morph(() => {
82+
return getToolchainArgs(rustToolchainFile);
83+
}, {});
84+
85+
expect(args.name).toBe("stable");
86+
});
7487
});

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)