Store private key in keychain #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/BamPeers/rust-ci-github-actions-workflow | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
name: Test # with Code Coverage | |
permissions: | |
contents: read | |
checks: write | |
pull-requests: write | |
jobs: | |
test: | |
name: Test | |
env: | |
PROJECT_NAME_UNDERSCORE: bpb_pkgx | |
CARGO_INCREMENTAL: 0 | |
RUSTFLAGS: -Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort -D warnings | |
RUSTDOCFLAGS: -Cpanic=abort | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-dependencies | |
with: | |
path: | | |
~/.cargo/.crates.toml | |
~/.cargo/.crates2.json | |
~/.cargo/bin | |
~/.cargo/registry/index | |
~/.cargo/registry/cache | |
target | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Cargo.lock') }} | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --all-features | |
# coverage: | |
# name: Coverage | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: actions-rs/toolchain@v1 | |
# with: | |
# profile: minimal | |
# toolchain: nightly | |
# override: true | |
# - name: Generate test result and coverage report | |
# run: | | |
# cargo install cargo-tarpaulin | |
# cargo tarpaulin --engine ptrace -o lcov --output-dir coverage --coveralls $COVERALLS_TOKEN | |
# env: | |
# COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} |