Skip to content

Add Continuous Integration #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/workflows/Continuous-Integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: VL53L1 Continuous Integration
on:
push:
branches:
- master
paths-ignore:
- '*'
- '**.md'
- '**.txt'
pull_request:
paths-ignore:
- '*'
- '**.md'
- '**.txt'
jobs:
astyle_check:
runs-on: ubuntu-latest
name: AStyle check
steps:
# First of all, clone the repo using the checkout action.
- name: Checkout
uses: actions/checkout@master

- name: Astyle check
id: Astyle
uses: stm32duino/actions/astyle-check@master

# Use the output from the `Astyle` step
- name: Astyle Errors
if: failure()
run: |
cat ${{ steps.Astyle.outputs.astyle-result }}
exit 1
spell-check:
runs-on: ubuntu-latest
name: Spell check
steps:
- uses: actions/checkout@master
- uses: arduino/actions/libraries/spell-check@master
with:
ignore-words-list: "./extras/codespell-ignore-words-list.txt"
lib_build:
runs-on: ubuntu-latest
name: Library compilation
steps:
# First of all, clone the repo using the checkout action.
- name: Checkout
uses: actions/checkout@master

- name: Compilation
id: Compile
uses: stm32duino/actions/compile-examples@master
with:
board-pattern: "NUCLEO_L476RG"

# Use the output from the `Compile` step
- name: Compilation Errors
if: failure()
run: |
cat ${{ steps.Compile.outputs.compile-result }}
exit 1
2 changes: 2 additions & 0 deletions extras/codespell-ignore-words-list.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
hist
pres
2 changes: 1 addition & 1 deletion src/ComponentObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class ComponentObject {
public:
/**
* @brief Initializing the component.
* @param[in] init pointer to device specific initalization structure.
* @param[in] init pointer to device specific initialization structure.
* @retval "0" in case of success, an error code otherwise.
*/
virtual int Init() = 0;
Expand Down
8 changes: 4 additions & 4 deletions src/vl53l1_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -392,13 +392,13 @@ typedef uint8_t VL53L1_State;
typedef uint8_t VL53L1_SmudgeCorrectionModes;

#define VL53L1_SMUDGE_CORRECTION_NONE ((VL53L1_SmudgeCorrectionModes) 0)
/*!< Smudge correction is applied continously accross the rangings */
/*!< Smudge correction is applied continuously across the rangings */
#define VL53L1_SMUDGE_CORRECTION_CONTINUOUS ((VL53L1_SmudgeCorrectionModes) 1)
/*!< Smudge correction is applied continously accross the rangings */
/*!< Smudge correction is applied continuously across the rangings */
#define VL53L1_SMUDGE_CORRECTION_SINGLE ((VL53L1_SmudgeCorrectionModes) 2)
/*!< Smudge correction is applied only once accross the rangings */
/*!< Smudge correction is applied only once across the rangings */
#define VL53L1_SMUDGE_CORRECTION_DEBUG ((VL53L1_SmudgeCorrectionModes) 3)
/*!< Smudge detection is applied continously but Xtalk values are not
/*!< Smudge detection is applied continuously but Xtalk values are not
* updated automatically within the driver
*/

Expand Down
4 changes: 2 additions & 2 deletions src/vl53l1_error_codes.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ typedef int8_t VL53L1_Error;
/*!< Zone dynamic config GPH ID check failed - API out of sync */

#define VL53L1_ERROR_XTALK_EXTRACTION_NO_SAMPLE_FAIL ((VL53L1_Error) - 22)
/*!< Thrown when run_xtalk_extraction fn has 0 succesful samples
/*!< Thrown when run_xtalk_extraction fn has 0 successful samples
* when using the full array to sample the xtalk. In this case there is
* not enough information to generate new Xtalk parm info. The function
* will exit and leave the current xtalk parameters unaltered
Expand Down Expand Up @@ -237,7 +237,7 @@ typedef int8_t VL53L1_Error;
* notification only, xtalk pulse and shape have still been generated
*/
#define VL53L1_WARNING_XTALK_NO_SAMPLES_FOR_GRADIENT ((VL53L1_Error) - 39)
/*!< Thrown to notify that some of teh xtalk samples used for gradient
/*!< Thrown to notify that some of the xtalk samples used for gradient
* generation did not yield valid ranging pulse data while attempting to
* measure the xtalk signal in vl53l1_run_xtalk_extract(). This can
* signify that any one of the zones 0-3 yielded no successful samples.
Expand Down