Skip to content

23 new version alpha4 #3

23 new version alpha4

23 new version alpha4 #3

Workflow file for this run

name: ReleaseTest
on:
pull_request:
branches: [release]
types: [opened, synchronize]
env:
CARGO_TERM_COLOR: always
jobs:
publish:
runs-on: ubuntu-latest
permissions: write-all
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: publish crates dry run
run: |
cargo login ${{ secrets.crates_io }}
cargo publish -p encrypt_config --dry-run
cargo publish -p encrypt_config_derive --dry-run