Use @actions-rs/core for cargo/cross execution.

Add problem matcher for cargo output
This commit is contained in:
svartalf 2019-09-25 10:08:33 +03:00
parent 5c0786fa0f
commit e35786a472
12 changed files with 109 additions and 116 deletions

View file

@ -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([