Skip to content

Commit 4b26c72

Browse files
0sakcagix
authored andcommitted
Tooling: add GitHub workflow to perform software test
Additions : * Github Action test_suite.yml
1 parent fb836c0 commit 4b26c72

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed

.github/workflows/test_suite.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CBuilder Tests & C-Runtime Tests
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
catch2:
9+
name: Testing C-Runtime
10+
strategy:
11+
matrix:
12+
os: [ubuntu-latest, macos-latest]
13+
runs-on: ${{ matrix.os }}
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Pre Clean
18+
working-directory: ./c-runtime
19+
run: make clean
20+
- name: Exec makefile
21+
working-directory: ./c-runtime
22+
run: make test
23+
- name: Clean Up
24+
working-directory: ./c-runtime
25+
run: make test_clean ; make clean
26+
27+
languagefeatures:
28+
name: Testing CBuilder (Java)
29+
strategy:
30+
matrix:
31+
os: [ubuntu-latest, macos-latest]
32+
runs-on: ${{ matrix.os }}
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
- name: Set up JDK 21
37+
uses: actions/setup-java@v4
38+
with:
39+
java-version: '21'
40+
distribution: 'temurin'
41+
- name: Build with Gradle
42+
run: ./gradlew test

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ processResources {
1717

1818
dependencies {
1919
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.0-M2'
20-
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:5.11.0-M2'
20+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0-M2'
2121
}
2222

2323
application {

c-runtime/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,12 @@ doc:
8888
.PHONY: lint
8989
lint:
9090
clang-tidy --checks=*,-bugprone-reserved-identifier,-cert-dcl37-c,-cert-dcl51-cpp,-altera-struct-pack-align $(SRC)
91+
92+
93+
.PHONY: test
94+
test: test_clean
95+
96+
97+
.PHONY: test_clean
98+
test_clean:
99+
echo "dummy to allow gh workflow to do its job"

0 commit comments

Comments
 (0)