ci: update workflows #79
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
name: test | |
on: | |
push: | |
paths: | |
- ".github/workflows/*" | |
- "Makefile" | |
- "src/**" | |
- "main.c" | |
- "test/**" | |
pull_request: | |
branches: | |
- "main" | |
paths: | |
- ".github/workflows/*" | |
- "Makefile" | |
- "src/**" | |
- "main.c" | |
- "test/**" | |
jobs: | |
run_unit_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone mmv | |
uses: actions/checkout@v3 | |
- name: Clone test framework | |
uses: actions/checkout@v3 | |
with: | |
repository: ThrowTheSwitch/Unity | |
path: Unity | |
- name: Set up directory | |
run: mv ./Unity/src/* test | |
- name: Build test executables | |
run: make test | |
- name: Clean up test executable | |
run: make test_clean |