|
1 | 1 | # Integration Rust Cargo with GitHub Actions |
2 | 2 |
|
| 3 | +## Overview |
| 4 | + |
| 5 | +### Error in code |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | +### Failed test |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | +### General result |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | +## Inputs |
| 18 | + |
| 19 | +- **Required** `command`: Cargo command like `build`, `check`, `test`, etc. |
| 20 | +- `args`: Arguments for the cargo command. |
| 21 | +- `manifest-path`: Path to the Cargo.toml. By default, is the working directory. |
| 22 | +- `token`: GitHub token. Used for enable more powerful annotation system. *Strongly recommended** |
| 23 | +- `toolchain`: Toolchain to use. For example: `nightly`. |
| 24 | + |
| 25 | +_* Default GitHub Actions annotations supports only up to 10 warnings and 10 errors for per the step. With `token` you up this limit to `1000`_ |
| 26 | + |
| 27 | +## Outputs |
| 28 | + |
| 29 | +- `notice_count`: Notice count. |
| 30 | +- `warning_count`: Warning count. |
| 31 | +- `failure_count`: Failure count. |
| 32 | + |
3 | 33 | ## Example |
4 | 34 |
|
5 | 35 | ```yaml |
|
61 | 91 | command: audit |
62 | 92 | ``` |
63 | 93 |
|
64 | | -## Inputs |
65 | | -
|
66 | | -- **Required** `command`: Cargo command like `build`, `check`, `test`, etc. |
67 | | -- `args`: Arguments for the cargo command. |
68 | | -- `manifest-path`: Path to the Cargo.toml. By default, is the working directory. |
69 | | -- `token`: GitHub token. Used for enable more powerful annotation system. *Strongly recommended** |
70 | | -- `toolchain`: Toolchain to use. For example: `nightly`. |
71 | | - |
72 | | -_* Default GitHub Actions annotations supports only up to 10 warnings and 10 errors for per the step. With `token` you up this limit to `1000`_ |
73 | | - |
74 | | -## Outputs |
75 | | - |
76 | | -- `notice_count`: Notice count. |
77 | | -- `warning_count`: Warning count. |
78 | | -- `failure_count`: Failure count. |
79 | | - |
80 | 94 | ## For developers |
81 | 95 |
|
82 | 96 | 1. Install the dependencies. |
|
0 commit comments