mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-27 19:12:56 +01:00
ci: fix post-merge tool installs
This commit is contained in:
parent
3eba5b152e
commit
9017de439f
16
.github/workflows/ci-post-merge.yml
vendored
16
.github/workflows/ci-post-merge.yml
vendored
@ -101,11 +101,13 @@ jobs:
|
|||||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with: { toolchain: nightly }
|
with: { toolchain: nightly }
|
||||||
|
|
||||||
|
- name: Install cargo-tarpaulin
|
||||||
|
uses: taiki-e/install-action@v1
|
||||||
|
with: { tool: cargo-tarpaulin }
|
||||||
|
|
||||||
- name: Generate coverage file
|
- name: Generate coverage file
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
run: |
|
run: cargo tarpaulin --out Xml --verbose
|
||||||
cargo install cargo-tarpaulin
|
|
||||||
cargo tarpaulin --out Xml --verbose
|
|
||||||
- name: Upload to Codecov
|
- name: Upload to Codecov
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
@ -121,8 +123,9 @@ jobs:
|
|||||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with: { toolchain: nightly }
|
with: { toolchain: nightly }
|
||||||
|
|
||||||
- uses: taiki-e/install-action@v1
|
- name: Install cargo-hack & cargo-minimal-versions
|
||||||
with: { tool: cargo-hack, cargo-minimal-versions }
|
uses: taiki-e/install-action@v1
|
||||||
|
with: { tool: 'cargo-hack,cargo-minimal-versions' }
|
||||||
|
|
||||||
- name: Check With Minimal Versions
|
- name: Check With Minimal Versions
|
||||||
run: cargo minimal-versions check
|
run: cargo minimal-versions check
|
||||||
@ -137,7 +140,8 @@ jobs:
|
|||||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
|
|
||||||
- name: Install cargo-nextest
|
- name: Install cargo-nextest
|
||||||
run: cargo install cargo-nextest
|
uses: taiki-e/install-action@v1
|
||||||
|
with: { tool: cargo-nextest }
|
||||||
|
|
||||||
- name: Test with cargo-nextest
|
- name: Test with cargo-nextest
|
||||||
run: cargo nextest run
|
run: cargo nextest run
|
||||||
|
@ -28,8 +28,8 @@ type AttributeArgs = syn::punctuated::Punctuated<syn::Meta, syn::Token![,]>;
|
|||||||
/// println!("Hello world");
|
/// println!("Hello world");
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
// #[allow(clippy::needless_doctest_main)]
|
#[allow(clippy::needless_doctest_main)]
|
||||||
// #[cfg(not(test))] // Work around for rust-lang/rust#62127
|
#[cfg(not(test))] // Work around for rust-lang/rust#62127
|
||||||
#[proc_macro_attribute]
|
#[proc_macro_attribute]
|
||||||
pub fn main(args: TokenStream, item: TokenStream) -> TokenStream {
|
pub fn main(args: TokenStream, item: TokenStream) -> TokenStream {
|
||||||
let mut input = match syn::parse::<syn::ItemFn>(item.clone()) {
|
let mut input = match syn::parse::<syn::ItemFn>(item.clone()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user