Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update CodeQL Path in PR checks
  • Loading branch information
angelapwen committed Dec 16, 2022
commit 20b2d99dd62d68a9d036c8cd2b202dd655814dcd
9 changes: 7 additions & 2 deletions .github/workflows/__export-file-baseline-information.yml

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

6 changes: 5 additions & 1 deletion .github/workflows/__multi-language-autodetect.yml

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

6 changes: 5 additions & 1 deletion .github/workflows/__swift-autobuild.yml

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

6 changes: 5 additions & 1 deletion .github/workflows/__swift-custom-build.yml

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

9 changes: 7 additions & 2 deletions pr-checks/checks/export-file-baseline-information.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ description: "Tests that file baseline information is exported when the feature
versions: ["nightly-latest"]
steps:
- uses: ./../action/init
id: init
with:
languages: javascript
tools: ${{ steps.prepare-test.outputs.tools-url }}
Expand All @@ -11,12 +12,16 @@ steps:
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: true
- name: Get Swift version
id: get_swift_version
# We don't support Swift on Windows
if: runner.os != 'Windows'
shell: bash
env:
CODEQL_PATH: ${{steps.init.outputs.codeql-path}}
run: |
codeql/experimental/swift/tools/*/extractor --version | awk '/version/ { print $3 }'
SWIFT_EXTRACTOR_DIR="$CODEQL_PATH" resolve languages --format json | jq -r '.swift[0]'
$SWIFT_EXTRACTOR_DIR/tools/*/extractor --version | awk '/version/ { print $3 }'
echo "version=$VERSION" | tee -a $GITHUB_OUTPUT
- uses: swift-actions/setup-swift@194625b58a582570f61cc707c3b558086c26b723
# We don't support Swift on Windows
if: runner.os != 'Windows'
with:
swift-version: "${{steps.get_swift_version.outputs.version}}"
Expand Down
6 changes: 5 additions & 1 deletion pr-checks/checks/multi-language-autodetect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@ env:
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: "true" # Remove when Swift is GA.
steps:
- uses: ./../action/init
id: init
with:
db-location: "${{ runner.temp }}/customDbLocation"
tools: ${{ steps.prepare-test.outputs.tools-url }}

- name: Get Swift version
id: get_swift_version
shell: bash
env:
CODEQL_PATH: ${{steps.init.outputs.codeql-path}}
run: |
codeql/experimental/swift/tools/*/extractor --version | awk '/version/ { print $3 }'
SWIFT_EXTRACTOR_DIR="$CODEQL_PATH" resolve languages --format json | jq -r '.swift[0]'
$SWIFT_EXTRACTOR_DIR/tools/*/extractor --version | awk '/version/ { print $3 }'
echo "version=$VERSION" | tee -a $GITHUB_OUTPUT

- uses: swift-actions/setup-swift@194625b58a582570f61cc707c3b558086c26b723
Expand Down
6 changes: 5 additions & 1 deletion pr-checks/checks/swift-autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ env:
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: "true"
steps:
- uses: ./../action/init
id: init
with:
languages: swift
tools: ${{ steps.prepare-test.outputs.tools-url }}
- name: Get Swift version
id: get_swift_version
shell: bash
env:
CODEQL_PATH: ${{steps.init.outputs.codeql-path}}
run: |
codeql/experimental/swift/tools/*/extractor --version | awk '/version/ { print $3 }'
SWIFT_EXTRACTOR_DIR="$CODEQL_PATH" resolve languages --format json | jq -r '.swift[0]'
$SWIFT_EXTRACTOR_DIR/tools/*/extractor --version | awk '/version/ { print $3 }'
echo "version=$VERSION" | tee -a $GITHUB_OUTPUT
- uses: swift-actions/setup-swift@194625b58a582570f61cc707c3b558086c26b723
with:
Expand Down
6 changes: 5 additions & 1 deletion pr-checks/checks/swift-custom-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ env:
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
steps:
- uses: ./../action/init
id: init
with:
languages: swift
tools: ${{ steps.prepare-test.outputs.tools-url }}
- name: Get Swift version
id: get_swift_version
shell: bash
env:
CODEQL_PATH: ${{steps.init.outputs.codeql-path}}
run: |
codeql/experimental/swift/tools/*/extractor --version | awk '/version/ { print $3 }'
SWIFT_EXTRACTOR_DIR="$CODEQL_PATH" resolve languages --format json | jq -r '.swift[0]'
$SWIFT_EXTRACTOR_DIR/tools/*/extractor --version | awk '/version/ { print $3 }'
echo "version=$VERSION" | tee -a $GITHUB_OUTPUT
- uses: swift-actions/setup-swift@194625b58a582570f61cc707c3b558086c26b723
with:
Expand Down