Add route: DELETE /access-policies/{access_policy_id} #33
Workflow file for this run
This file contains hidden or 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
| name: Run Rust tests | |
| on: | |
| push: | |
| paths: | |
| - src/** | |
| - Cargo.toml | |
| - Cargo.lock | |
| - .github/workflows/run-rust-tests.yml | |
| branches: | |
| - production | |
| - staging | |
| pull_request: | |
| paths: | |
| - src/** | |
| - Cargo.toml | |
| - Cargo.lock | |
| - .github/workflows/run-rust-tests.yml | |
| branches: | |
| - production | |
| - staging | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: cargo test | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/[email protected] | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - run: mkdir secrets | |
| - run: openssl genrsa -out secrets/jwt-private-key.pem 2048 | |
| - run: openssl rsa -in secrets/jwt-private-key.pem -pubout -out ./secrets/jwt-public-key.pem | |
| - run: RUSTFLAGS="-Awarnings" cargo test --all-features | |
| env: | |
| JWT_PUBLIC_KEY_PATH: ./secrets/jwt-public-key.pem | |
| JWT_PRIVATE_KEY_PATH: ./secrets/jwt-private-key.pem |