12345678910111213141516171819202122232425262728293031323334353637 |
- 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,
- ]
- 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 }}
|