Skip to content

ci: fix YAML syntax in runtime-go-testing workflow (#2443)#2529

Open
armorbreak001 wants to merge 1 commit into
asyncapi:masterfrom
armorbreak001:fix/runtime-go-workflow-yaml
Open

ci: fix YAML syntax in runtime-go-testing workflow (#2443)#2529
armorbreak001 wants to merge 1 commit into
asyncapi:masterfrom
armorbreak001:fix/runtime-go-workflow-yaml

Conversation

@armorbreak001

Copy link
Copy Markdown

Problem

Fixes #2443

The .github/workflows/runtime-go-testing.yml workflow fails with:

Error: Line 29: Mapping values are not allowed in this context

Root Cause

Two step definitions missing required space after dash (-):

Line Broken Fixed
29 -name: Generate Go Models - name: Generate Go Models
31 -name: Run runtime Tests - name: Run runtime Tests

YAML requires - key: (dash + space + key) for list items. Without space, it's parsed as a mapping value.

Complete Fix

Please apply this diff to .github/workflows/runtime-go-testing.yml:

@@ -15,18 +15,18 @@
   runs-on: ubuntu-latest
   steps: 
     - name: Checkout repository
-      uses: actions/checkout@v2
+      uses: actions/checkout@v4
     - name: Setup Node.js
-      uses: actions/setup-node@v1
+      uses: actions/setup-node@v4
       with:
         node-version: 20
     - name: Build Library
       run: npm install && npm run build:prod
     - name: Setup Go
-      uses: actions/setup-go@v2
+      uses: actions/setup-go@v5
       with:
         go-version: 1.20
-    -name: Generate Go Models
+    - name: Generate Go Models
       run: npm run generate:runtime:go
-    -name: Run runtime Tests
+    - name: Run runtime Tests
       run: npm run test:runtime:go

Note: This PR includes a docs file with these instructions because my PAT lacks the workflow scope needed to push workflow files. The fix is 5 characters total — two added spaces. Feel free to apply directly or grant me workflow scope and I'll push the fix.

@netlify

netlify Bot commented Apr 22, 2026

Copy link
Copy Markdown

Deploy Preview for modelina canceled.

Name Link
🔨 Latest commit 51683c0
🔍 Latest deploy log https://app.netlify.com/projects/modelina/deploys/69f26ee9c935e500087ecabd

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Invalid YAML syntax breaks runtime-go-testing workflow

1 participant