Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Refactor PR checks
- Loading branch information
Edoardo Pirovano
committed
Sep 8, 2021
1 parent
7128833
commit 444316b6c661898147f12a96291811fc83ed44d1
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
@@ -1,4 +1,5 @@ | ||
lib/*.js linguist-generated=true | ||
.github/workflows/__* linguist-generated=true | ||
|
||
# Reduce incidence of needless merge conflicts on CHANGELOG.md | ||
# The man page at | ||
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
@@ -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.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more.
Oops, something went wrong.
Oops, something went wrong.