Skip to content
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

Update ci #7

Merged
merged 2 commits into from
Feb 28, 2024
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
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/action@stable-1.x
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
maximilianpaulsen marked this conversation as resolved.
Show resolved Hide resolved
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
maximilianpaulsen marked this conversation as resolved.
Show resolved Hide resolved
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.

Loading