name: CI Built-in Cache Test on: [push] jobs: test-cache: runs-on: ubuntu-latest steps: - name: Check out repository code uses: actions/checkout@v4 # 1. Ask Gitea to look for an existing cache match - name: Cache Mock Engine id: engine-cache uses: actions/cache@v4 with: path: ./mock_downloads # The folder we want to preserve key: mock-engine-cache-v1 # The unique identifier for this cache # 2. This step only runs if there was a CACHE MISS - name: Simulate Asset Download (On Cache Miss) if: steps.engine-cache.outputs.cache-hit != 'true' run: | echo "📥 CACHE MISS! Creating the folder and simulating a file download..." mkdir -p ./mock_downloads echo "Mock Godot Engine Data v4.7" > ./mock_downloads/dummy_engine.txt # 3. This runs ALWAYS to verify the file is where it should be - name: Verify Workspace Output run: | echo "🔍 Verifying file presence..." if [ -f "./mock_downloads/dummy_engine.txt" ]; then echo "✅ File found! Content: $(cat ./mock_downloads/dummy_engine.txt)" else echo "❌ File not found!" exit 1 fi