Skip to content

Document in README and add schema test. #860

Document in README and add schema test.

Document in README and add schema test. #860

Workflow file for this run

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