Skip to content

23 new version alpha4 #39

23 new version alpha4

23 new version alpha4 #39

Workflow file for this run

name: Test
on:
pull_request:
branches: [dev, release]
types: [opened, synchronize]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Extract version
id: extract-version
run: echo "VERSION=$(grep -oP '^version = "\K[^"]+' Cargo.toml | awk '{$1=$1;print}')" >> $GITHUB_OUTPUT
- name: Cache restore
uses: actions/cache/restore@v3
id: cache-cargo-restore
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ steps.extract-version.outputs.VERSION }}
- name: Run clippy
run: cargo clippy --all-features --all-targets -- -D warnings
- name: Run all tests with default features
run: cargo test
- name: Run tests with all features
run: cargo test --all-features
- name: Cache save
if: steps.cache-cargo-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
id: cache-cargo-save
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ steps.cache-cargo-restore.outputs.cache-primary-key }}