From 425e62d6cd1becc0da188850ca1c2eacc7f0c9e1 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 26 Sep 2020 16:13:57 -0700 Subject: [PATCH 1/4] Update version of actions/checkout action used in Compile Examples CI workflow The action now has a default fetch-depth value of 1, so there is no need to specify this input. --- .github/workflows/compile-examples.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 011d2f1e..c191eadc 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -14,9 +14,7 @@ jobs: ] steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 + - uses: actions/checkout@v2 - uses: arduino/actions/libraries/compile-examples@master with: github-token: ${{ secrets.GITHUB_TOKEN }} From 3f706db4d6496047c38ead5c78e5eac2119a64b2 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 26 Sep 2020 16:15:51 -0700 Subject: [PATCH 2/4] Update name of action used to compile examples in CI workflow The action has been moved to a dedicated repository, where all future development work will happen. --- .github/workflows/compile-examples.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index c191eadc..eeef3302 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: arduino/actions/libraries/compile-examples@master + - uses: arduino/compile-sketches@v1 with: github-token: ${{ secrets.GITHUB_TOKEN }} fqbn: ${{ matrix.fqbn }} From 07965268a6cd5b4945fc212e850ae7038ae933d2 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 26 Sep 2020 16:18:05 -0700 Subject: [PATCH 3/4] Use consistent formatting style in Compile Examples CI action The previous inconsistent markup style, although perfectly valid, made the workflow harder to understand. --- .github/workflows/compile-examples.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index eeef3302..43a87a57 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -1,17 +1,19 @@ name: Compile Examples -on: [push, pull_request] +on: + - push + - pull_request + jobs: build: runs-on: ubuntu-latest strategy: matrix: - fqbn: [ - "arduino:samd:mkrwifi1010", - "arduino:samd:nano_33_iot", - "arduino:megaavr:uno2018:mode=on", - "arduino:mbed:nano33ble" - ] + fqbn: + - arduino:samd:mkrwifi1010 + - arduino:samd:nano_33_iot + - arduino:megaavr:uno2018:mode=on + - arduino:mbed:nano33ble steps: - uses: actions/checkout@v2 From 489830abebfa5b7fffe8f60464af9a084934dd3c Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 26 Sep 2020 16:19:50 -0700 Subject: [PATCH 4/4] Use consistent indent size in Compile Examples workflow The initial single space indent made the workflow difficult to edit and harmed readability. --- .github/workflows/compile-examples.yml | 30 +++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 43a87a57..abb566da 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -4,20 +4,20 @@ on: - pull_request jobs: - build: - runs-on: ubuntu-latest + build: + runs-on: ubuntu-latest - strategy: - matrix: - fqbn: - - arduino:samd:mkrwifi1010 - - arduino:samd:nano_33_iot - - arduino:megaavr:uno2018:mode=on - - arduino:mbed:nano33ble + strategy: + matrix: + fqbn: + - arduino:samd:mkrwifi1010 + - arduino:samd:nano_33_iot + - arduino:megaavr:uno2018:mode=on + - arduino:mbed:nano33ble - steps: - - uses: actions/checkout@v2 - - uses: arduino/compile-sketches@v1 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - fqbn: ${{ matrix.fqbn }} + steps: + - uses: actions/checkout@v2 + - uses: arduino/compile-sketches@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + fqbn: ${{ matrix.fqbn }}