Skip to content

Cobol

Cobol #6

Workflow file for this run

name: Cobol
on:
push:
branches: ["main"]
paths:
- .github/workflows/cobol.yml
- cobol/**
pull_request:
branches: ["main"]
paths:
- .github/workflows/cobol.yml
- cobol/**
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: cobol
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure Java
uses: actions/setup-java@v4
with:
java-version: "8"
distribution: "temurin"
- name: Configure Cobol
run: |
sudo apt-get install -y gnucobol
cobc --version
- name: Test
run: ./cobolcheck -p HELLO
- name: Build
run: |
cobc src/main/cobol/HELLO-CONSOLE.CBL
cobc -x src/main/cobol/HELLO.CBL
- name: Run
run: ./HELLO