Skip to content

Commit 10e7743

Browse files
tichiseclaude
andauthored
Add Dependabot and GitHub Actions CI for automated updates (#33)
- Add Dependabot configuration for Swift and GitHub Actions dependencies - Add CI workflow with builds for iOS and watchOS platforms - Add CocoaPods lint check Signed-off-by: tichise <43707+tichise@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 51f6d1f commit 10e7743

File tree

2 files changed

+100
-0
lines changed

2 files changed

+100
-0
lines changed

.github/dependabot.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
# Dependabot configuration file
2+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates
3+
4+
version: 2
5+
updates:
6+
# Swift Package Manager dependencies
7+
- package-ecosystem: "swift"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"
11+
day: "monday"
12+
time: "09:00"
13+
timezone: "Asia/Tokyo"
14+
open-pull-requests-limit: 10
15+
commit-message:
16+
prefix: "deps(swift):"
17+
18+
# GitHub Actions dependencies
19+
- package-ecosystem: "github-actions"
20+
directory: "/"
21+
schedule:
22+
interval: "weekly"
23+
day: "monday"
24+
time: "09:00"
25+
timezone: "Asia/Tokyo"
26+
open-pull-requests-limit: 5
27+
commit-message:
28+
prefix: "deps(actions):"
129
# To get started with Dependabot version updates, you'll need to specify which
230
# package ecosystems to update and where the package manifests are located.
331
# Please see the documentation for all configuration options:

.github/workflows/ci.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
pull_request:
9+
branches:
10+
- master
11+
- main
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
name: Build (${{ matrix.platform }})
20+
runs-on: macos-latest
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
platform: [iOS, watchOS]
25+
include:
26+
- platform: iOS
27+
destination: "platform=iOS Simulator,name=iPhone 15,OS=latest"
28+
- platform: watchOS
29+
destination: "platform=watchOS Simulator,name=Apple Watch Series 9 (45mm),OS=latest"
30+
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
35+
- name: Select Xcode
36+
run: sudo xcode-select -s /Applications/Xcode.app
37+
38+
- name: Show Xcode version
39+
run: xcodebuild -version
40+
41+
- name: Build Swift Package
42+
run: |
43+
xcodebuild build \
44+
-scheme MaterialDesignSymbol \
45+
-destination "${{ matrix.destination }}" \
46+
-skipPackagePluginValidation \
47+
| xcpretty || true
48+
49+
swift-build:
50+
name: Swift Build
51+
runs-on: macos-latest
52+
53+
steps:
54+
- name: Checkout
55+
uses: actions/checkout@v4
56+
57+
- name: Select Xcode
58+
run: sudo xcode-select -s /Applications/Xcode.app
59+
60+
- name: Build with Swift
61+
run: swift build
62+
63+
pod-lint:
64+
name: CocoaPods Lint
65+
runs-on: macos-latest
66+
67+
steps:
68+
- name: Checkout
69+
uses: actions/checkout@v4
70+
71+
- name: Lint Podspec
72+
run: pod lib lint --allow-warnings

0 commit comments

Comments
 (0)