Skip to content

Commit

Permalink
Add PR check
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Mercer committed Sep 14, 2023
1 parent 74714a3 commit 897ddf2
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/__language-aliases.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions pr-checks/checks/language-aliases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Language aliases"
description: "Tests that ML-powered queries are run with the security-extended suite and that they produce alerts on a test DB"
versions: ["latest"]
operatingSystems: ["ubuntu"]
steps:
- uses: ./../action/init
with:
languages: C#,java-kotlin,swift,typescript
tools: ${{ steps.prepare-test.outputs.tools-url }}

- name: "Check languages"
run: |
expected_languages="csharp,java,swift,javascript"
actual_languages=$(jq -r '.languages | join(",")' "$RUNNER_TEMP"/config)
if [ "$expected_languages" != "$actual_languages" ]; then
echo "Resolved languages did not match expected list. " \
"Expected languages: $expected_languages. Actual languages: $actual_languages."
exit 1
fi

0 comments on commit 897ddf2

Please sign in to comment.