This commit is contained in:
+20
-23
@@ -1,4 +1,4 @@
|
|||||||
name: Gitea Runner Test
|
name: Gitea Runner Cache Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -12,28 +12,25 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: https://git.drajon.cz/actions/checkout@v4
|
uses: https://git.drajon.cz/actions/checkout@v4
|
||||||
|
|
||||||
- name: Verify checkout
|
- name: Restore test cache
|
||||||
|
uses: https://git.drajon.cz/actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ~/.cache/gitea-test
|
||||||
|
key: gitea-test-v1
|
||||||
|
|
||||||
|
- name: Inspect cache
|
||||||
run: |
|
run: |
|
||||||
echo "================================="
|
echo "=== CACHE BEFORE ==="
|
||||||
echo " LOCAL CHECKOUT TEST"
|
if [ -f ~/.cache/gitea-test/value.txt ]; then
|
||||||
echo "================================="
|
cat ~/.cache/gitea-test/value.txt
|
||||||
|
else
|
||||||
|
echo "Cache is empty"
|
||||||
|
fi
|
||||||
|
|
||||||
echo
|
- name: Create cache content
|
||||||
echo "Working directory:"
|
run: |
|
||||||
pwd
|
mkdir -p ~/.cache/gitea-test
|
||||||
|
echo "Created at $(date -u)" > ~/.cache/gitea-test/value.txt
|
||||||
|
|
||||||
echo
|
echo "=== CACHE AFTER ==="
|
||||||
echo "Files:"
|
cat ~/.cache/gitea-test/value.txt
|
||||||
ls -la
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Git status:"
|
|
||||||
git status
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Latest commit:"
|
|
||||||
git log -1 --oneline
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Remote repository:"
|
|
||||||
git remote -v
|
|
||||||
Reference in New Issue
Block a user