Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# SPDX-FileCopyrightText: 2023 SAP SE
#
# SPDX-License-Identifier: Apache-2.0
#
# This file is part of FEDEM - https://openfedem.org

name: Unit testing

on:
pull_request:
branches:
- main

workflow_dispatch:

jobs:
build-and-test:
name: Build and execute unit tests

runs-on: ubuntu-22.04

steps:
- name: Silence some advice and hint
run: |
git config --global advice.detachedHead false
git config --global init.defaultBranch main

- name: Check out source repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Download the pFUnit-3 package
uses: robinraju/release-downloader@v1
with:
repository: openfedem/fedem-foundation
fileName: 'pFUnit3_Ubuntu-22.04.tar.gz'
latest: true
extract: true

- name: Configure main build
run: >
PFUNIT=${{ github.workspace }}/pFUnit3
cmake -B ./build -DCMAKE_BUILD_TYPE=Release -DBUILD_SPR_INTEGER8=OFF

- name: Build binaries and execute tests
run: cmake --build ./build --target check
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
--->

[![REUSE status](https://api.reuse.software/badge/github.com/openfedem/sam-lib)](https://api.reuse.software/info/github.com/openfedem/sam-lib)
[![Test status](https://github.com/openfedem/samm-lib/actions/workflows/run_test.yml/badge.svg)](https://github.com/openfedem/sam-lib/actions/workflows/run_test.yml)

# The SAM Fortran library

Expand Down
Loading