-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
Co-authored-by: Henry Mercer <[email protected]>
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This check should be combined into `multi-language-autodetect.yml` once Ruby is GA'ed | ||
# and the `CODEQL_ENABLE_EXPERIMENTAL_FEATURES` environment variable is not needed. | ||
name: "Ruby analysis using autodetect" | ||
description: "Tests creation of a Ruby database when language isn't specified in init" | ||
versions: ["latest", "cached", "nightly-latest"] | ||
operatingSystems: ["ubuntu", "macos"] | ||
env: | ||
CODEQL_ENABLE_EXPERIMENTAL_FEATURES: "true" | ||
steps: | ||
- uses: ./../action/init | ||
with: | ||
tools: ${{ steps.prepare-test.outputs.tools-url }} | ||
env: | ||
TEST_MODE: true | ||
- uses: ./../action/analyze | ||
id: analysis | ||
env: | ||
TEST_MODE: true | ||
- name: Check database | ||
shell: bash | ||
run: | | ||
RUBY_DB="${{ fromJson(steps.analysis.outputs.db-locations).ruby }}" | ||
if [[ ! -d "$RUBY_DB" ]]; then | ||
echo "Did not create a database for Ruby." | ||
exit 1 | ||
fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "Swift analysis using autobuild" | ||
description: "Tests creation of a Swift database using autobuild" | ||
versions: ["latest", "cached", "nightly-latest"] | ||
# Swift autobuilder is only supported on MacOS for private beta | ||
operatingSystems: ["macos"] | ||
env: | ||
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: "true" | ||
steps: | ||
- uses: ./../action/init | ||
with: | ||
languages: swift | ||
tools: ${{ steps.prepare-test.outputs.tools-url }} | ||
env: | ||
TEST_MODE: true | ||
- uses: ./../action/autobuild | ||
- uses: ./../action/analyze | ||
id: analysis | ||
env: | ||
TEST_MODE: true | ||
- name: Check database | ||
shell: bash | ||
run: | | ||
SWIFT_DB="${{ fromJson(steps.analysis.outputs.db-locations).swift }}" | ||
if [[ ! -d "$SWIFT_DB" ]]; then | ||
echo "Did not create a database for Swift." | ||
exit 1 | ||
fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: "Swift analysis using a custom build command" | ||
description: "Tests creation of a Swift database using custom build" | ||
versions: ["latest", "cached", "nightly-latest"] | ||
operatingSystems: ["ubuntu", "macos"] | ||
env: | ||
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: "true" | ||
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false" | ||
steps: | ||
- uses: ./../action/init | ||
with: | ||
languages: swift | ||
tools: ${{ steps.prepare-test.outputs.tools-url }} | ||
env: | ||
TEST_MODE: true | ||
- name: Build code | ||
shell: bash | ||
run: ./build.sh | ||
- uses: ./../action/analyze | ||
id: analysis | ||
env: | ||
TEST_MODE: true | ||
- name: Check database | ||
shell: bash | ||
run: | | ||
SWIFT_DB="${{ fromJson(steps.analysis.outputs.db-locations).swift }}" | ||
if [[ ! -d "$SWIFT_DB" ]]; then | ||
echo "Did not create a database for Swift." | ||
exit 1 | ||
fi |