Skip to content

En/117 Upgrade proxy to aws 7.0 api #141

En/117 Upgrade proxy to aws 7.0 api

En/117 Upgrade proxy to aws 7.0 api #141

Workflow file for this run

name: test
on:
pull_request:
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: -Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort
RUSTDOCFLAGS: -Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort
steps:
- uses: actions/checkout@v2
- name: Cache cargo registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v1
with:
path: ./target
key: ${{ runner.os }}-cargo-test-target-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Clean up old files
run: |
(find . -name "*.gcda" -print0 | xargs -0 rm) || true
- name: Run test
run: |
cargo test --workspace --all-features --no-fail-fast --verbose
- uses: actions-rs/grcov@v0.1
- name: Upload to CodeCov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ${{ steps.coverage.outputs.report }}