mirror of
https://github.com/actions-rs/cargo.git
synced 2025-09-03 14:51:56 +03:00
Use @actions-rs/core for cargo/cross execution.
Add problem matcher for cargo output
This commit is contained in:
parent
5c0786fa0f
commit
e35786a472
12 changed files with 109 additions and 116 deletions
|
@ -8,14 +8,14 @@ const testEnvVars = {
|
|||
INPUT_TOOLCHAIN: '+nightly'
|
||||
}
|
||||
|
||||
describe('actions-rs/check', () => {
|
||||
describe('actions-rs/cargo/input', () => {
|
||||
beforeEach(() => {
|
||||
for (const key in testEnvVars)
|
||||
process.env[key] = testEnvVars[key as keyof typeof testEnvVars]
|
||||
})
|
||||
|
||||
it('Parses action input into cargo input', async () => {
|
||||
const result = input.parse();
|
||||
const result = input.get();
|
||||
|
||||
expect(result.command).toBe('build');
|
||||
expect(result.args).toStrictEqual([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue