Skip to content

Use Pingora-native host functions in examples #7

Use Pingora-native host functions in examples

Use Pingora-native host functions in examples #7

Workflow file for this run

name: CI
on:
push:
pull_request:
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
CARGO_TARGET_DIR: target
jobs:
rust:
name: Rust lint and tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: rustscript-pingora-gateway-policy
- uses: actions/checkout@v4
with:
repository: rustscript-lang/rustscript
path: rustscript
- uses: actions/checkout@v4
with:
repository: rustscript-lang/pd-edge
path: pd-edge
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Format check
working-directory: rustscript-pingora-gateway-policy
run: cargo fmt --all -- --check
- name: Clippy
working-directory: rustscript-pingora-gateway-policy
run: cargo clippy --all-targets -- -D warnings
- name: Tests
working-directory: rustscript-pingora-gateway-policy
run: cargo test --tests --jobs 4
- name: Example run
working-directory: rustscript-pingora-gateway-policy
run: |
cargo run --example decision
cargo run --example protocols