Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
chevrons-right

GitHub Action

Setup COBOL

v1.0.9

Setup COBOL

chevrons-right

Setup COBOL

This action sets up GnuCOBOL

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup COBOL

uses: fabasoad/setup-cobol-action@v1.0.9

Learn more about this action in fabasoad/setup-cobol-action

Choose a version

Setup COBOL (GnuCOBOL)

GitHub release Unit Tests Functional Tests Security Tests YAML Lint Shell Lint Maintainability Test Coverage Known Vulnerabilities

This action sets up a GnuCOBOL programming language. Currently supports Linux Ubuntu only.

Inputs

Name Required Description Default Possible values
version No GnuCOBOL version. Currently supports 3.0-rc1 only. 3.0-rc1 3.0-rc1

Example usage

Workflow configuration

name: Setup COBOL

on: push

jobs:
  setup:
    name: Setup
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@main
      - uses: fabasoad/setup-cobol-action@main
      - name: Run script
        run: |
          cobc -x HelloWorld.cob
          ./HelloWorld

Result

Run cobc -x HelloWorld.cob
Hello World!