-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7128833
commit 444316b
Showing
33 changed files
with
1,710 additions
and
903 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: "Prepare test" | ||
description: Performs some preparation to run tests | ||
inputs: | ||
version: | ||
required: true | ||
outputs: | ||
tools-url: | ||
value: ${{ steps.get-url.outputs.tools-url }} | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Move codeql-action | ||
shell: bash | ||
run: | | ||
mkdir ../action | ||
mv * .github ../action/ | ||
mv ../action/tests/multi-language-repo/{*,.github} . | ||
mv ../action/.github/workflows .github | ||
- id: get-url | ||
name: Determine URL | ||
shell: bash | ||
run: | | ||
if [[ ${{ inputs.version }} == "nightly-latest" ]]; then | ||
export LATEST=`gh release list --repo dsp-testing/codeql-cli-nightlies -L 1 | cut -f 3` | ||
echo "::set-output name=tools-url::https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/$LATEST/codeql-bundle.tar.gz" | ||
elif [[ ${{ inputs.version }} == *"nightly"* ]]; then | ||
export VERSION=`echo ${{ inputs.version }} | sed -e 's/^.*\-//'` | ||
echo "::set-output name=tools-url::https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/codeql-bundle-$VERSION-manual/codeql-bundle.tar.gz" | ||
elif [[ ${{ inputs.version }} == *"stable"* ]]; then | ||
export VERSION=`echo ${{ inputs.version }} | sed -e 's/^.*\-//'` | ||
echo "Hello $VERSION" | ||
echo "::set-output name=tools-url::https://github.com/github/codeql-action/releases/download/codeql-bundle-$VERSION/codeql-bundle.tar.gz" | ||
elif [[ ${{ inputs.version }} == "latest" ]]; then | ||
echo "::set-output name=tools-url::latest" | ||
elif [[ ${{ inputs.version }} == "cached" ]]; then | ||
echo "::set-output name=tools-url::" | ||
else | ||
echo "::error Unrecognized version specified!" | ||
fi |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.