Skip to content

Improve release building - add checking for uncommitted changes (#67) #189

Improve release building - add checking for uncommitted changes (#67)

Improve release building - add checking for uncommitted changes (#67) #189

Workflow file for this run

# Run Ceedling tests
name: Ceedling
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "unit-test"
unit-test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Ruby 2.7
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
# Runs a single command using the runners shell
- name: Install Ceedling
run: gem install ceedling
- name: Cache nRF5_SDK_15.3.0_59ac345
id: cache-nRF5_SDK
uses: actions/cache@v4
with:
path: |
~/nRF5_SDK_15.3.0_59ac345
key: nRF5_SDK-${{ hashFiles('.github/workflows/build-fw.yml') }}
- name: Download and install Nordic SDK nRF5_SDK_15.3.0_59ac345
if: steps.cache-nRF5_SDK.outputs.cache-hit != 'true'
run: |
wget -q https://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v15.x.x/nRF5_SDK_15.3.0_59ac345.zip
unzip -q nRF5_SDK_15.3.0_59ac345.zip -d ~
# Runs a set of commands using the runners shell
- name: Run unit tests
run: |
uname -a
ln -s ~/nRF5_SDK_15.3.0_59ac345 nRF5_SDK_15.3.0_59ac345
pwd
ls -la
make test_all