Skip to content

Commit

Permalink
Merge pull request #7 from Sensirion/update-ci
Browse files Browse the repository at this point in the history
Update ci
  • Loading branch information
maximilianpaulsen authored Feb 28, 2024
2 parents 0788da6 + 4f01136 commit aeb0ce4
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 137 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/arduino.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Arduino Lib

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
arduino-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: arduino/arduino-lint-action@v1
with:
library-manager: update

arduino-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Arduino-CI/[email protected]
env:
EXPECT_EXAMPLES: true
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,25 @@ on:

jobs:
PlatformIO-Check:
uses: ./.github/workflows/platformio_check_template.yml
uses: sensirion/.github/.github/workflows/platformio_check.yml@main
with:
pio-environment-list: '["ble_example", "basicUsage"]'

PlatformIO-Build:
uses: ./.github/workflows/platformio_build_template.yml
uses: sensirion/.github/.github/workflows/platformio_build.yml@main
needs: PlatformIO-Check
with:
pio-environment-list: '["ble_example", "basicUsage"]'

PlatformIO-Package:
if: ${{ (github.ref_type != 'tag') && (github.ref_name == 'master') }}
needs: PlatformIO-Build
uses: ./.github/workflows/platformio_publish_template.yml
uses: sensirion/.github/.github/workflows/platformio_publish.yml@main
with:
should-publish: false

PlatformIO-Publish:
uses: ./.github/workflows/platformio_publish_template.yml
uses: sensirion/.github/.github/workflows/platformio_publish.yml@main
if: github.ref_type == 'tag'
needs: PlatformIO-Build
with:
Expand Down
35 changes: 0 additions & 35 deletions .github/workflows/platformio_build_template.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/platformio_check_template.yml

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/platformio_publish_template.yml

This file was deleted.

0 comments on commit aeb0ce4

Please sign in to comment.