Skip to content

Commit e4ee728

Browse files
committed
fix: resolve GitHub Actions YAML syntax errors
- Fixed indentation issues in performance.yml (all steps now properly aligned) - Corrected shell script block structure in enhanced-ci.yml - Fixed missing jobs section and step indentation in optimized-ci.yml - These fixes should resolve the workflow failures affecting CI/CD pipeline Addresses the YAML parsing errors that were preventing all workflows from running: - performance.yml: Fixed inconsistent step indentation - enhanced-ci.yml: Fixed incomplete if-else block structure - optimized-ci.yml: Fixed missing proper indentation for steps All workflows should now pass basic YAML validation.
1 parent 1f05aea commit e4ee728

File tree

3 files changed

+28
-29
lines changed

3 files changed

+28
-29
lines changed

.github/workflows/enhanced-ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,13 @@ jobs:
127127
run: |
128128
echo "🔧 Checking formatting..."
129129
if ! cargo fmt --all -- --check; then
130-
echo "Formatting issues found, applying fixes..."
131-
cargo fmt --all
132-
echo "format_fixed=true" >> $GITHUB_OUTPUT
130+
echo "Formatting issues found, applying fixes..."
131+
cargo fmt --all
132+
fi
133+
echo "format_fixed=true" >> $GITHUB_OUTPUT
133134
else
134-
echo "✅ Formatting is correct"
135-
echo "format_fixed=false" >> $GITHUB_OUTPUT
135+
echo "✅ Formatting is correct"
136+
echo "format_fixed=false" >> $GITHUB_OUTPUT
136137
fi
137138
138139
- name: Check and auto-fix clippy issues

.github/workflows/optimized-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ env:
3131

3232
jobs:
3333
# Pre-flight checks and change detection
34-
preflight:
34+
preflight:
3535
name: Preflight Checks
3636
runs-on: ubuntu-latest
3737
outputs:

.github/workflows/performance.yml

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,27 @@ jobs:
3131
name: Performance Benchmark
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
35-
36-
- name: Install sccache
37-
uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd
38-
39-
- name: Install Rust
40-
uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6
41-
42-
43-
44-
- name: Cache cargo registry
45-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
46-
with:
47-
path: |
48-
~/.cargo/registry
49-
~/.cargo/git
50-
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
51-
52-
- name: Cache target
53-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
54-
with:
55-
path: target
56-
key: ${{ runner.os }}-bench-target-${{ hashFiles('**/Cargo.lock') }}
34+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
35+
36+
- name: Install sccache
37+
uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd
38+
39+
- name: Install Rust
40+
uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6
41+
42+
- name: Cache cargo registry
43+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
44+
with:
45+
path: |
46+
~/.cargo/registry
47+
~/.cargo/git
48+
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
49+
50+
- name: Cache target
51+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
52+
with:
53+
path: target
54+
key: ${{ runner.os }}-bench-target-${{ hashFiles('**/Cargo.lock') }}
5755

5856
- name: Run benchmarks
5957
run: |

0 commit comments

Comments
 (0)