[GH-ISSUE #95] ports not being parsed correctly #61

Closed
opened 2026-03-01 21:39:34 +03:00 by kerem · 2 comments
Owner

Originally created by @pjmartorell on GitHub (Feb 22, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/95

Is not parsing ports correctly, as far as I know is a valid syntax:

> act -l
Error: yaml: unmarshal errors:
  line 13: cannot unmarshal !!str `5432:5432` into int

Failing yml:

name: Ruby

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    services:
      postgres:
        image: postgres:11.5
        ports:
          - 5432:5432
        options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

Originally created by @pjmartorell on GitHub (Feb 22, 2020). Original GitHub issue: https://github.com/nektos/act/issues/95 Is not parsing ports correctly, as far as I know is a valid syntax: ``` > act -l Error: yaml: unmarshal errors: line 13: cannot unmarshal !!str `5432:5432` into int ``` Failing yml: ``` name: Ruby on: [push] jobs: build: runs-on: ubuntu-latest services: postgres: image: postgres:11.5 ports: - 5432:5432 options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 ```
kerem closed this issue 2026-03-01 21:39:34 +03:00
Author
Owner

@cplee commented on GitHub (Feb 25, 2020):

Fixed the parsing of yaml, but currently services: is not supported by act. Very doable, but just trying to get a stable release out for now.

<!-- gh-comment-id:590708623 --> @cplee commented on GitHub (Feb 25, 2020): Fixed the parsing of yaml, but currently `services:` is not supported by act. Very doable, but just trying to get a stable release out for now.
Author
Owner

@mced commented on GitHub (Mar 31, 2020):

Hi @cplee, do you have any eta on this ? Or a hack to iterate locally on workflows which require services ?

<!-- gh-comment-id:606613822 --> @mced commented on GitHub (Mar 31, 2020): Hi @cplee, do you have any eta on this ? Or a hack to iterate locally on workflows which require services ?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#61
No description provided.