Skip to content

Refactor setup-gradle tasks (#98) #32

Refactor setup-gradle tasks (#98)

Refactor setup-gradle tasks (#98) #32

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:
checks: 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: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: test
path: cobol/output/testResults.xml
reporter: jest-junit
- name: Build
run: |
cobc src/main/cobol/HELLO-CONSOLE.CBL
cobc -x src/main/cobol/HELLO.CBL
- name: Run
run: ./HELLO