Skip to content

Commit

Permalink
add deploy key
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmwells-amazon committed Apr 27, 2023
1 parent c675b95 commit 0bcaeed
Showing 1 changed file with 50 additions and 9 deletions.
59 changes: 50 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,60 @@ env:
CARGO_TERM_COLOR: always

jobs:
build_and_test:
build_and_test_rust_hello_world:
name: Rust project - latest
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo fmt --all --check
- run: cargo --verbose rustc -- -D warnings -F unsafe-code
- run: cargo test --verbose
- run: cargo bench --no-run


- name: Checkout Cedar Examples
uses: actions/checkout@v3
- name: Checkout cedar
uses: actions/checkout@v3
with:
repository: cedar-policy/cedar
ref: main
path: ./cedar
ssh-key: ${{ secrets.CEDAR }}
- name: rustup
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: cargo fmt
working-directory: ./cedar-rust-hello-world
run: cargo fmt --all --check
- name: cargo rustc
working-directory: ./cedar-rust-hello-world
run: cargo --verbose rustc -- -D warnings -F unsafe-code
- name: cargo test
working-directory: ./cedar-rust-hello-world
run: cargo test --verbose

build_and_test_github_model_app:
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: main
path: ./cedar
ssh-key: ${{ secrets.CEDAR }}
- name: rustup
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: cargo fmt
working-directory: ./cedar-github-model-app
run: cargo fmt --all --check
- name: cargo rustc
working-directory: ./cedar-github-model-app
run: cargo --verbose rustc -- -D warnings -F unsafe-code
- name: cargo test
working-directory: ./cedar-github-model-app
run: cargo test --verbose

0 comments on commit 0bcaeed

Please sign in to comment.