Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MATLAB CI and status badge #246

Merged
merged 2 commits into from
Feb 27, 2024
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
41 changes: 41 additions & 0 deletions .github/workflows/matlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

name: SDMX MATLAB CI

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ master, develop ]
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build-java:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

# Setup job
- name: Set up JDK 8 for x64
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
architecture: x64

# Sets up MATLAB on the GitHub Actions runner
- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v1
with:
release: R2023a

- name: Testing
run: |
mkdir -p MATLAB/lib && \
cp RJSDMX/inst/java/SDMX.jar MATLAB/lib && \
cd MATLAB/ && \
matlab -batch "addpath .;result=runtests('test/testSDMX.m');exit(any([result.Failed]));"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Sdmx Connectors
====

[![SDMX MATLAB CI](https://github.com/amattioc/SDMX/actions/workflows/matlab-ci.yml/badge.svg?branch=master)](https://github.com/amattioc/SDMX/actions/workflows/matlab-ci.yml)

Setup and Configuration: [SDMX wiki](https://github.com/amattioc/SDMX/wiki)<br>

![Latest Release](https://img.shields.io/github/v/release/amattioc/SDMX) ![Latest Release downloads](https://img.shields.io/github/downloads/amattioc/SDMX/latest/total)
Expand Down
Loading