Skip to content

Commit

Permalink
Improved pipeline testcases.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Dec 14, 2024
1 parent 8b56f18 commit 48c17ba
Show file tree
Hide file tree
Showing 2 changed files with 325 additions and 166 deletions.
40 changes: 40 additions & 0 deletions .github/actions/create-files/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Create test files
description: Create an artificial directory and file structure

runs:
using: composite
steps:
- name: 🖉 Create some artificial file and directory structures
shell: bash
run: |
printf "%s\n" "Root"
printf "%s\n" "Document 1 $(date --utc '+%d.%m.%Y - %H:%M:%S')" > document1.txt
printf "%s\n" "Analysis log $(date --utc '+%d.%m.%Y - %H:%M:%S')" > analysis.log
printf "%s\n" "Build log $(date --utc '+%d.%m.%Y - %H:%M:%S')" > build.log
printf "%s\n" "bin/"
mkdir -p bin
printf "%s\n" "Program $(date --utc '+%d.%m.%Y - %H:%M:%S')" > bin/program.py
chmod u+x bin/program.py
printf "%s\n" "Tool $(date --utc '+%d.%m.%Y - %H:%M:%S')" > bin/tool.py
chmod g+x bin/tool.py
printf "%s\n" "lib/"
mkdir -p lib
printf "%s\n" "Library 1 $(date --utc '+%d.%m.%Y - %H:%M:%S')" > lib/common.py
chmod +x lib/common.py
printf "%s\n" "Library 2 $(date --utc '+%d.%m.%Y - %H:%M:%S')" > lib/shared.py
chmod +x lib/shared.py
printf "%s\n" "lib/gui/"
mkdir -p lib/gui
printf "%s\n" "Library 3 $(date --utc '+%d.%m.%Y - %H:%M:%S')" > lib/gui/main.py
chmod +x lib/gui/main.py
printf "%s\n" "Library 4 $(date --utc '+%d.%m.%Y - %H:%M:%S')" > lib/gui/dialog.py
chmod +x lib/gui/dialog.py
- name: 🔎 Inspect directory structure
if: runner.os != 'macOS'
shell: bash
run: |
tree .
Loading

0 comments on commit 48c17ba

Please sign in to comment.