Skip to content

Bump actions/checkout from 3 to 4 #114

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #114

---
name: 'Octave: test and coverage'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
- dev
pull_request:
branches:
- '*'
jobs:
octave_tests:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get -y -qq update
sudo apt-get -y install octave liboctave-dev
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 1
- name: Compile JSONio
run: |
cd lib/JSONio
mkoctfile --mex jsonread.c jsmn.c -DJSMN_PARENT_LINKS
- name: MOxUnit Action
uses: joergbrech/moxunit-action@v1.3.0
with:
tests: tests
src: src
ext: lib/JSONio tests/utils # External resources to add to the search put (excluded from coverage)
with_coverage: true
cover_xml_file: coverage.xml
- name: Code coverage
uses: codecov/codecov-action@v3
with:
file: coverage.xml
flags: ubuntu-latest_octave
name: codecov-umbrella
fail_ci_if_error: true