-
-
Notifications
You must be signed in to change notification settings - Fork 26
Add GitHub Actions for CI, Release Drafter, and Dependabot #69
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
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
| target-branch: "main" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| name-template: 'v$NEXT_PATCH_VERSION' | ||
| tag-template: 'v$NEXT_PATCH_VERSION' | ||
| categories: | ||
| - title: '🚀 New Features' | ||
| labels: | ||
| - 'feature' | ||
| - 'enhancement' | ||
| - title: '🐛 Bug Fixes' | ||
| labels: | ||
| - 'fix' | ||
| - 'bug' | ||
| - title: '🧰 Maintenance' | ||
| labels: | ||
| - 'chore' | ||
| - 'documentation' | ||
| - 'refactor' | ||
| version-resolver: | ||
| major: | ||
| labels: | ||
| - 'major' | ||
| minor: | ||
| labels: | ||
| - 'minor' | ||
| patch: | ||
| labels: | ||
| - 'patch' | ||
| - 'fix' | ||
|
Comment on lines
+24
to
+27
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| default: patch | ||
| template: | | ||
| ## What's New | ||
| $CHANGES | ||
|
|
||
| ## Contributors | ||
| $CONTRIBUTORS | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| name: Check | ||
|
|
||
| "on": | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| - dev | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Run Unit Tests | ||
| runs-on: macos-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Select Xcode | ||
| run: sudo xcode-select -s /Applications/Xcode.app | ||
|
|
||
| - name: Build and Test | ||
| run: | | ||
| xcodebuild test \ | ||
| -project wled.xcodeproj \ | ||
| -scheme WLED \ | ||
| -destination 'platform=iOS Simulator,name=iPhone 15,OS=latest' \ | ||
| CODE_SIGN_IDENTITY="" \ | ||
| CODE_SIGNING_REQUIRED=NO \ | ||
| CODE_SIGNING_ALLOWED=NO | ||
|
|
||
| lint: | ||
| name: Run Lint | ||
| runs-on: macos-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install SwiftLint | ||
| run: brew install swiftlint | ||
|
|
||
| - name: Run SwiftLint | ||
| run: swiftlint --strict |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| name: Release Drafter | ||
|
|
||
| "on": | ||
| push: | ||
| # branches to consider in the event; optional, defaults to all branches | ||
| branches: | ||
| - main | ||
| - dev | ||
| # pull_request event is required only for autolabeler | ||
| pull_request: | ||
| types: [opened, reopened, synchronize] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| update_release_draft: | ||
| permissions: | ||
| # write permission is required to create a github release | ||
| contents: write | ||
| # write permission is required for autolabeler | ||
| pull-requests: write | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| # Drafts your next Release notes as PRs are merged into "main" or "dev" | ||
| - uses: release-drafter/release-drafter@v6 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description mentions that CI runs on both
mainanddevbranches, which suggestsdevis also a key development branch. To keep dependencies up-to-date on both branches, consider adding a separate configuration block for thedevbranch.