-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PR check for cleaning up database cluster dir
- Loading branch information
1 parent
1354fe5
commit c8fb403
Showing
2 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,25 @@ | ||
name: "Clean up database cluster directory" | ||
description: "The database cluster directory is cleaned up if it is not empty." | ||
operatingSystems: ["ubuntu"] | ||
versions: ["linked"] | ||
steps: | ||
- name: Add a file to the database cluster directory | ||
run: | | ||
mkdir -p "${{ runner.temp }}/customDbLocation/javascript" | ||
touch "${{ runner.temp }}/customDbLocation/javascript/a-file-to-clean-up.txt" | ||
- uses: ./../action/init | ||
id: init | ||
with: | ||
build-mode: none | ||
db-location: "${{ runner.temp }}/customDbLocation" | ||
languages: javascript | ||
tools: ${{ steps.prepare-test.outputs.tools-url }} | ||
|
||
- name: Validate file cleaned up | ||
run: | | ||
if [[ -f "${{ runner.temp }}/customDbLocation/javascript/a-file-to-clean-up.txt" ]]; then | ||
echo "File was not cleaned up" | ||
exit 1 | ||
fi | ||
echo "File was cleaned up" |