diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ef25284..97321a8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,9 +1,19 @@ -name: CI +name: Go on: push: branches: [main] + paths: + - "**/*.go" + - "go.mod" + - "go.sum" + - ".github/workflows/ci.yaml" pull_request: + paths: + - "**/*.go" + - "go.mod" + - "go.sum" + - ".github/workflows/ci.yaml" jobs: build: diff --git a/.github/workflows/swift-ci.yaml b/.github/workflows/swift-ci.yaml new file mode 100644 index 0000000..b91329f --- /dev/null +++ b/.github/workflows/swift-ci.yaml @@ -0,0 +1,51 @@ +name: macOS + +on: + push: + branches: [main] + paths: + - "macos/ControlCenter/**/*.swift" + - "macos/ControlCenter/Package.swift" + - "macos/ControlCenter/Package.resolved" + - ".github/workflows/swift-ci.yaml" + pull_request: + paths: + - "macos/ControlCenter/**/*.swift" + - "macos/ControlCenter/Package.swift" + - "macos/ControlCenter/Package.resolved" + - ".github/workflows/swift-ci.yaml" + +jobs: + build: + name: Build + runs-on: macos-15 + steps: + - uses: actions/checkout@v4 + + - uses: swift-actions/setup-swift@v2 + with: + swift-version: "6.2" + + - name: Show Swift version + run: swift --version + + - name: Build + working-directory: macos/ControlCenter + run: swift build + + test: + name: Test + runs-on: macos-15 + steps: + - uses: actions/checkout@v4 + + - uses: swift-actions/setup-swift@v2 + with: + swift-version: "6.2" + + - name: Show Swift version + run: swift --version + + - name: Test + working-directory: macos/ControlCenter + run: swift test