Skip to content

Commit 897ddf2

Browse files
committed
Add PR check
1 parent 74714a3 commit 897ddf2

File tree

2 files changed

+89
-0
lines changed

2 files changed

+89
-0
lines changed

.github/workflows/__language-aliases.yml

Lines changed: 69 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-checks/checks/language-aliases.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Language aliases"
2+
description: "Tests that ML-powered queries are run with the security-extended suite and that they produce alerts on a test DB"
3+
versions: ["latest"]
4+
operatingSystems: ["ubuntu"]
5+
steps:
6+
- uses: ./../action/init
7+
with:
8+
languages: C#,java-kotlin,swift,typescript
9+
tools: ${{ steps.prepare-test.outputs.tools-url }}
10+
11+
- name: "Check languages"
12+
run: |
13+
expected_languages="csharp,java,swift,javascript"
14+
actual_languages=$(jq -r '.languages | join(",")' "$RUNNER_TEMP"/config)
15+
16+
if [ "$expected_languages" != "$actual_languages" ]; then
17+
echo "Resolved languages did not match expected list. " \
18+
"Expected languages: $expected_languages. Actual languages: $actual_languages."
19+
exit 1
20+
fi

0 commit comments

Comments
 (0)