-
Notifications
You must be signed in to change notification settings - Fork 13
49 lines (47 loc) · 1.72 KB
/
test-rules.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Test Rules (staging + prod)
on:
push:
branches:
- "**"
pull_request:
schedule:
# run every day at 9am UTC
- cron: '0 9 * * *'
workflow_call:
jobs:
production_rules:
runs-on: ubuntu-latest
env:
DD_SITE: datadoghq.com
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1.10.1
with:
components: clippy
- name: Test all production rules
run: |
cargo build --profile release-dev --bin datadog-static-analyzer && \
cargo build --profile release-dev --bin datadog-static-analyzer-server && \
sudo apt-get install python3-requests && \
for language in go python typescript javascript csharp java ruby; do \
python misc/test-rules.py -c $PWD/target/release-dev/datadog-static-analyzer -s $PWD/target/release-dev/datadog-static-analyzer-server -l $language ; \
done
staging_rules:
runs-on: ubuntu-latest
env:
DD_SITE: datad0g.com
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1.10.1
with:
components: clippy
- name: Test all staging rules
run: |
cargo build --profile release-dev --bin datadog-static-analyzer && \
cargo build --profile release-dev --bin datadog-static-analyzer-server && \
sudo apt-get install python3-requests && \
for language in go python typescript javascript csharp java ruby; do \
python misc/test-rules.py -c $PWD/target/release-dev/datadog-static-analyzer -s $PWD/target/release-dev/datadog-static-analyzer-server -l $language ; \
done