-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
corrected yml to yaml, separated jobs, added unit test commands to wo…
…rkflow
- Loading branch information
Showing
1 changed file
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Name of your workflow | ||
name: Build Workflow | ||
|
||
# Define the trigger event(s) | ||
# on: pull_request | ||
on: [push] | ||
|
||
# Jobs run in parallel by default, each runs steps in sequence | ||
jobs: | ||
|
||
checkout-our-repo: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Use github.com/actions/checkout to check out this repo | ||
- name: Check out this repo | ||
uses: actions/checkout@v3 | ||
|
||
compile-firmware: | ||
needs: checkout-our-repo | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Build STM32CubeIde project | ||
uses: xanderhendriks/action-build-stm32cubeide@v10.0 | ||
with: | ||
project-path: 'DAQ_System' | ||
project-target: 'DAQ_System/Debug' | ||
|
||
run-unit-tests: | ||
needs: checkout-our-repo | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run Google Test | ||
run: | | ||
cd DAQ_System/Tests | ||
python3 run_tests.py | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
# # Name of your workflow | ||
# name: Build Workflow | ||
|
||
# # Define the trigger event(s) | ||
# # on: pull_request | ||
# on: [push] | ||
|
||
# # Jobs run in parallel by default, each runs steps in sequence | ||
# jobs: | ||
|
||
# build-and-compile: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
|
||
# # Use github.com/actions/checkout to check out this repo | ||
# - name: Check out this repo | ||
# uses: actions/checkout@v3 | ||
|
||
# - name: Build STM32CubeIde project | ||
# uses: xanderhendriks/action-build-stm32cubeide@v10.0 | ||
# with: | ||
# project-path: 'DAQ_System' | ||
# project-target: 'DAQ_System/Debug' | ||
|