Skip to content

Commit

Permalink
corrected yml to yaml, separated jobs, added unit test commands to wo…
Browse files Browse the repository at this point in the history
…rkflow
  • Loading branch information
crsz20 committed Nov 15, 2023
1 parent 2f70c79 commit 9305e7e
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/action.yaml
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'

0 comments on commit 9305e7e

Please sign in to comment.