Document in README and add schema test. #860
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
on: | |
push: | |
pull_request: | |
name: Check Code | |
jobs: | |
check_code: | |
strategy: | |
matrix: | |
include: | |
# Ubuntu | |
- target: aarch64-unknown-linux-gnu | |
os: ubuntu-latest | |
- target: x86_64-unknown-linux-gnu | |
os: ubuntu-latest | |
# Mac OS | |
- target: aarch64-apple-darwin | |
os: macos-latest | |
- target: x86_64-apple-darwin | |
os: macos-latest | |
# Windows | |
- target: x86_64-pc-windows-msvc | |
os: windows-latest | |
runs-on: ${{ matrix.os }} | |
env: | |
DD_API_KEY: ${{ secrets.DD_API_KEY }} | |
DD_APP_KEY: ${{ secrets.DD_APP_KEY }} | |
DD_SITE: ${{ vars.DD_SITE }} | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install Stable + Rustfmt + Clippy | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: clippy | |
override: true | |
default: true | |
- name: Check code with Clippy | |
run: cargo clippy | |
- name: Check formatting | |
run: cargo fmt --check | |
- name: Run tests | |
run: cargo test | |
- name: Check python rulesets - part1 | |
run: cargo run --bin datadog-static-analyzer-test-ruleset -- -r python-best-practices -r python-security -r python-code-style -r python-inclusive | |
- name: Check python rulesets - part2 | |
run: cargo run --bin datadog-static-analyzer-test-ruleset -- -r python-django -r python-flask -r python-design | |
- name: Check Java rulesets | |
run: cargo run --bin datadog-static-analyzer-test-ruleset -- -r java-security -r java-best-practices -r java-code-style | |
- name: Check Docker rulesets | |
run: cargo run --bin datadog-static-analyzer-test-ruleset -- -r docker-best-practices |