Skip to content

Commit

Permalink
Update checkout, tests, links. Add dependabot
Browse files Browse the repository at this point in the history
Signed-off-by: Sara Damiano <[email protected]>
  • Loading branch information
SRGDamia1 committed Jun 24, 2024
1 parent 409f5c7 commit eaa6798
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 18 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'
labels:
- 'CI/CD'
commit-message:
prefix: ci
4 changes: 2 additions & 2 deletions .github/workflows/test-action-bypass.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test action

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- '**.md'

Expand All @@ -14,7 +14,7 @@ jobs:
steps:
# Bypass this workflow
- run: 'echo "No build required" '

build-with-version:
name: Build with version
runs-on: ubuntu-latest
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,31 @@ jobs:
steps:
# Checks-out repo
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

# Use the local action
- name: Setup PlatformIO (without version)
uses: ./

# Check if pio command works
- name: Check pio command
run: pio --help

build-with-version:
name: Build with version
runs-on: ubuntu-latest

steps:
# Checks-out repo
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

# Use the local action
- name: Setup PlatformIO (with version)
uses: ./
with:
platformio-version: "5.2.5"
platformio-version: "6.1.11"

# Check if pio command works
- name: Check pio command
run: pio --help

18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Setup PlatformIO
[![Test action](https://github.com/n-vr/setup-platformio-action/actions/workflows/test-action.yml/badge.svg)](https://github.com/n-vr/setup-platformio-action/actions/workflows/test-action.yml)
[![Test action](https://github.com/EnviroDIY/setup-platformio-action/actions/workflows/test-action.yml/badge.svg)](https://github.com/EnviroDIY/setup-platformio-action/actions/workflows/test-action.yml)

This actions sets up PlatformIO for use in actions.

Expand All @@ -8,15 +8,15 @@ This actions sets up PlatformIO for use in actions.
### Use newest PlatformIO version
```yaml
- name: Setup PlatformIO
uses: n-vr/setup-platformio-action@v1
uses: EnviroDIY/setup-platformio-action@v1
```
### Specify the version of PlatformIO you want to use
```yaml
- name: Setup PlatformIO
uses: n-vr/setup-platformio-action@v1
uses: EnviroDIY/setup-platformio-action@v1
with:
platformio-version: "5.2"
platformio-version: "6.1"
```
> See [inputs](#platformio-version-optional) for more info.
Expand All @@ -39,12 +39,12 @@ jobs:
steps:
# Checkout repository
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
# Setup PlatformIO in PATH
- name: Setup PlatformIO
uses: n-vr/setup-platformio-action@v1
uses: EnviroDIY/setup-platformio-action@v1
# Build the PlatformIO project
- name: Build PlatformIO project
run: pio run
Expand All @@ -54,7 +54,7 @@ jobs:
Use the `with` keyword to specify these inputs

#### `platformio-version` (optional)
Specify the PlatformIO to set up. Use semantic versioning (e.g. "5.2.5", "5.2" or "5"). If no version is specified, the newest version is used.
Specify the PlatformIO to set up. Use semantic versioning (e.g. "6.1.11", "6.1" or "6"). If no version is specified, the newest version is used.

## License
Distributed under the MIT license. See [LICENSE.md](LICENSE.md) for more information.
Expand Down

0 comments on commit eaa6798

Please sign in to comment.