diff --git a/.gitea/workflows/test-cache-state.yml b/.gitea/workflows/test-cache-state.yml index 7748b71..6dbd45e 100644 --- a/.gitea/workflows/test-cache-state.yml +++ b/.gitea/workflows/test-cache-state.yml @@ -79,7 +79,7 @@ jobs: # 操作类型专项测试 test-operation-types: if: ${{ inputs.test_scope == 'operations' || inputs.test_scope == 'full' }} - runs-on: ubuntu-latest + runs-on: ubuntu-node-20 strategy: matrix: operation: [get, set, get-or-set] @@ -150,7 +150,7 @@ jobs: # 缓存行为测试 test-cache-behavior: if: ${{ inputs.test_scope == 'operations' || inputs.test_scope == 'full' }} - runs-on: ubuntu-latest + runs-on: ubuntu-node-20 steps: - name: 检出代码 uses: actions/checkout@v4 @@ -248,7 +248,7 @@ jobs: # 边界情况测试 test-edge-cases: if: ${{ inputs.test_scope == 'edge-cases' || inputs.test_scope == 'full' }} - runs-on: ubuntu-latest + runs-on: ubuntu-node-20 strategy: matrix: edge_case: @@ -301,7 +301,7 @@ jobs: # 并发测试 test-concurrent: if: ${{ inputs.test_scope == 'stress' || inputs.test_scope == 'full' }} - runs-on: ubuntu-latest + runs-on: ubuntu-node-20 strategy: matrix: worker: [1, 2, 3, 4, 5] @@ -337,7 +337,7 @@ jobs: # 过期时间测试 test-expiry: if: ${{ inputs.test_scope == 'expiry' || inputs.test_scope == 'full' }} - runs-on: ubuntu-latest + runs-on: ubuntu-node-20 steps: - name: 检出代码 uses: actions/checkout@v4 @@ -467,7 +467,7 @@ jobs: # 删除功能测试 test-delete-operations: if: ${{ inputs.test_scope == 'delete' || inputs.test_scope == 'full' }} - runs-on: ubuntu-latest + runs-on: ubuntu-node-20 steps: - name: 检出代码 uses: actions/checkout@v4 @@ -615,7 +615,7 @@ jobs: # 错误处理测试 test-error-handling: if: ${{ inputs.test_scope == 'edge-cases' || inputs.test_scope == 'full' }} - runs-on: ubuntu-latest + runs-on: ubuntu-node-20 steps: - name: 检出代码 uses: actions/checkout@v4 @@ -679,7 +679,7 @@ jobs: cleanup-test-cache: if: ${{ inputs.clean_cache && always() }} needs: [test-basic-operations, test-operation-types, test-cache-behavior, test-edge-cases, test-concurrent, test-error-handling] - runs-on: ubuntu-latest + runs-on: ubuntu-node-20 steps: - name: 检出代码 uses: actions/checkout@v4 @@ -708,7 +708,7 @@ jobs: test-summary: needs: [test-basic-operations, test-operation-types, test-cache-behavior, test-edge-cases, test-expiry, test-delete-operations, test-concurrent, test-error-handling] if: always() - runs-on: ubuntu-latest + runs-on: ubuntu-node-20 steps: - name: 生成测试报告 run: |