Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/pr-checks/checks/test-autobuild-working-dir.yml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
30 lines (30 sloc)
853 Bytes
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
name: "Autobuild working directory" | |
description: "Tests working-directory input of autobuild action" | |
versions: ["latest"] | |
os: ["ubuntu-latest"] | |
steps: | |
- name: Test setup | |
shell: bash | |
run: | | |
# Make sure that Gradle build succeeds in autobuild-dir ... | |
cp -a ../action/tests/java-repo autobuild-dir | |
# ... and fails if attempted in the current directory | |
echo > build.gradle | |
- uses: ./../action/init | |
with: | |
languages: java | |
tools: ${{ steps.prepare-test.outputs.tools-url }} | |
- uses: ./../action/autobuild | |
with: | |
working-directory: autobuild-dir | |
- uses: ./../action/analyze | |
env: | |
TEST_MODE: true | |
- name: Check database | |
shell: bash | |
run: | | |
cd "$RUNNER_TEMP/codeql_databases" | |
if [[ ! -d java ]]; then | |
echo "Did not find a Java database" | |
exit 1 | |
fi |