From 181b34fdb4c3eaee98ad12df0605b5e36612586b Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Fri, 3 Jul 2020 17:44:21 +0200 Subject: [PATCH 1/2] [CI] Add Continuous Integration workflow Signed-off-by: Frederic Pillon --- .github/workflows/Continuous-Integration.yml | 62 ++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .github/workflows/Continuous-Integration.yml diff --git a/.github/workflows/Continuous-Integration.yml b/.github/workflows/Continuous-Integration.yml new file mode 100644 index 0000000..cc060e2 --- /dev/null +++ b/.github/workflows/Continuous-Integration.yml @@ -0,0 +1,62 @@ +name: STM32LowPower 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.*" + libraries: "STM32duino RTC" + + # Use the output from the `Compile` step + - name: Compilation Errors + if: failure() + run: | + cat ${{ steps.Compile.outputs.compile-result }} + exit 1 \ No newline at end of file From 96d9bf7850a18117d2a96a812ab3bb639375c1ea Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Fri, 3 Jul 2020 17:47:35 +0200 Subject: [PATCH 2/2] Unified library source formatting Apply Astyle Ensure all files have the same format (Unix) Signed-off-by: Frederic Pillon --- src/STM32LowPower.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/STM32LowPower.h b/src/STM32LowPower.h index 32c8dbe..8c39d81 100644 --- a/src/STM32LowPower.h +++ b/src/STM32LowPower.h @@ -43,7 +43,7 @@ // Check if PWR HAL enable in variants/board_name/stm32yzxx_hal_conf.h #ifndef HAL_PWR_MODULE_ENABLED -#error "PWR configuration is missing. Check flag HAL_PWR_MODULE_ENABLED in variants/board_name/stm32yzxx_hal_conf.h" + #error "PWR configuration is missing. Check flag HAL_PWR_MODULE_ENABLED in variants/board_name/stm32yzxx_hal_conf.h" #endif #include "STM32RTC.h"