Skip to content

feat(crypto): implement message cryptography e2e #255

feat(crypto): implement message cryptography e2e

feat(crypto): implement message cryptography e2e #255

Workflow file for this run

name: Build
on:
push:
branches: ["*"]
paths-ignore:
- "**/docs/**"
- "**.md"
pull_request:
branches: [main]
paths-ignore:
- "**/docs/**"
- "**.md"
workflow_call:
secrets:
CODECOV_TOKEN:
required: true
jobs:
lint:
name: lint
strategy:
fail-fast: false
matrix:
version: ["ubuntu-latest"]
cargo-cmd:
- fmt --all -- --check
- clippy --all-targets --all-features -- -D warnings
runs-on: ${{ matrix.version }}
steps:
- uses: actions/checkout@v4
- name: setup | rust
uses: dtolnay/rust-toolchain@stable
- run: cargo ${{ matrix['cargo-cmd'] }}
tests:
name: test
strategy:
fail-fast: false
matrix:
version: ["macos-latest", "ubuntu-latest", "windows-latest"]
rust: [nightly, stable]
runs-on: ${{ matrix.version }}
continue-on-error: ${{ matrix.rust == 'nightly' }}
steps:
- uses: actions/checkout@v4
- name: setup | rust
uses: dtolnay/rust-toolchain@${{ matrix.rust }}}

Check failure on line 47 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 47, Col: 15): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.rust
- name: cargo test
run: cargo test --all --locked
coverage:
name: coverage report
strategy:
fail-fast: false
matrix:
version: ["ubuntu-latest"]
runs-on: ${{ matrix.version }}
steps:
- uses: actions/checkout@v4
- name: setup | rust
uses: dtolnay/rust-toolchain@stable
- run: cargo binstall -y cargo-llvm-cov
- run: cargo llvm-cov --lcov --output-path lcov.info
- name: Upload to codecov.io
uses: codecov/codecov-action@v4
with:
file: lcov.info
fail_ci_if_error: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: lcov.info
# pkg-deb:
# name: binaray package .deb
# needs: check
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: cargo deb
# uses: sassman/rust-deb-builder@v1
# with:
# package: stegano-cli
# - name: Archive deb artifact
# uses: actions/upload-artifact@v2
# with:
# name: stegano-cli-amd64-static.deb
# path: target/x86_64-unknown-linux-musl/debian/stegano-cli*.deb
audit:
name: security audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup | rust
uses: dtolnay/rust-toolchain@stable
- run: cargo binstall -y cargo-audit
- name: audit
run: cargo audit