-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (47 loc) · 1.03 KB
/
cobol.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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