Update
This commit is contained in:
@@ -1,41 +0,0 @@
|
|||||||
# Test 7
|
|
||||||
name: Gitea Actions Runner Test
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ main, master ]
|
|
||||||
workflow_dispatch: # Allows manual trigger from Gitea UI
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
runner-validation:
|
|
||||||
runs-on: ubuntu-latest # Matches the default label in act_runner
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Verify Environment Info
|
|
||||||
run: |
|
|
||||||
echo "Testing runner environment..."
|
|
||||||
echo "Operating System:" && uname -a
|
|
||||||
echo "Docker version:" && docker --version || echo "Docker not installed in job environment"
|
|
||||||
|
|
||||||
- name: Setup Node.js (Creates Cache Target)
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-size: 20
|
|
||||||
|
|
||||||
- name: Test Cache Functionality
|
|
||||||
id: test-cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: ~/.npm
|
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-node-
|
|
||||||
|
|
||||||
- name: Dummy Build Task
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/.npm
|
|
||||||
echo "Simulating dependency generation..." > ~/.npm/dummy-dependency.txt
|
|
||||||
echo "Runner check complete! Pipeline successful."
|
|
||||||
Reference in New Issue
Block a user