Skip to content

Commit

Permalink
Added github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aeraterta committed Jan 13, 2025
1 parent e6e743d commit f5c5483
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
unit-test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository with submodules
uses: actions/checkout@v2
with:
submodules: recursive

- name: Update submodules to the latest commit
run: git submodule update --remote --recursive

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'

- name: Install specific Ceedling version
run: gem install ceedling -v 0.31.1

- name: Install gcc-avr
run: sudo apt-get update && sudo apt-get install -y gcc-avr

- name: Run Ceedling tests
run: ceedling test:all
2 changes: 1 addition & 1 deletion project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
:paths:
:test:
- +:test/**
- -:test/support
:source:
- src/**
:support:
Expand All @@ -54,7 +55,6 @@
:mock_prefix: mock_
:when_no_prototypes: :warn
:enforce_strict_ordering: TRUE
:verbosity: 2
:plugins:
- :ignore
- :array
Expand Down
Empty file added test/support/.gitkeep
Empty file.

0 comments on commit f5c5483

Please sign in to comment.