Skip to content

2.3.x dep check

2.3.x dep check #184

Workflow file for this run

name: Cargo Build & Test
on:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test_cedar_java_ffi:
name: Rust project - latest
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
steps:
- name: Checkout Cedar Examples
uses: actions/checkout@v3
- name: Checkout cedar
uses: actions/checkout@v3
with:
repository: cedar-policy/cedar
ref: release/2.3.x
path: ./cedar
- name: rustup
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: cargo fmt
working-directory: ./CedarJavaFFI
run: cargo fmt --all --check
- name: configure
working-directory: ./CedarJava
shell: bash
run: bash config.sh run_int_tests
- name: cargo rustc
working-directory: ./CedarJavaFFI
run: RUSTFLAGS="-D warnings -F unsafe-code" cargo build --verbose
- name: cargo test
working-directory: ./CedarJavaFFI
run: cargo test --verbose
- name: Build CedarJava
working-directory: ./CedarJava
shell: bash
run: export MUST_RUN_CEDAR_INTEGRATION_TESTS=1 && ./gradlew build
- name: Dependency Check
uses: dependency-check/Dependency-Check_Action@1.1.0
id: Depcheck
with:
project: 'CedarJava'
path: 'CedarJava'
format: 'HTML'
args: >
--failOnCVSS 7
--enableRetired
- name: Upload Test results
uses: actions/upload-artifact@master
with:
name: Depcheck report
path: ${{github.workspace}}/reports