Skip to content

Commit

Permalink
Tooling: add GitHub workflow to perform software test
Browse files Browse the repository at this point in the history
Additions :

* Github Action test_suite.yml
  • Loading branch information
0sak authored and cagix committed Jul 9, 2024
1 parent fb836c0 commit 4b26c72
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/test_suite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CBuilder Tests & C-Runtime Tests

on:
pull_request:
workflow_dispatch:

jobs:
catch2:
name: Testing C-Runtime
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Pre Clean
working-directory: ./c-runtime
run: make clean
- name: Exec makefile
working-directory: ./c-runtime
run: make test
- name: Clean Up
working-directory: ./c-runtime
run: make test_clean ; make clean

languagefeatures:
name: Testing CBuilder (Java)
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Build with Gradle
run: ./gradlew test
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ processResources {

dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.0-M2'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:5.11.0-M2'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0-M2'
}

application {
Expand Down
9 changes: 9 additions & 0 deletions c-runtime/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,12 @@ doc:
.PHONY: lint
lint:
clang-tidy --checks=*,-bugprone-reserved-identifier,-cert-dcl37-c,-cert-dcl51-cpp,-altera-struct-pack-align $(SRC)


.PHONY: test
test: test_clean


.PHONY: test_clean
test_clean:
echo "dummy to allow gh workflow to do its job"

0 comments on commit 4b26c72

Please sign in to comment.