1234567891011121314151617181920212223242526272829303132333435363738 |
- name: test
- on:
- push:
- branches: [ main ]
- pull_request:
- branches: [ main ]
- env:
- CARGO_TERM_COLOR: always
- jobs:
- test:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- rust:
- - version: stable
- build-args:
- [
- -p cdk,
- -p cdk-integration-tests,
- ]
- steps:
- - name: Checkout Crate
- uses: actions/checkout@v3
- - name: Cache
- uses: actions/cache@v3
- with:
- path: |
- ~/.cargo/registry
- ~/.cargo/git
- target
- key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- - name: Set default toolchain
- run: rustup default ${{ matrix.rust.version }}
- - name: Test
- run: cargo test ${{ matrix.build-args }}
|