diff --git a/.github/workflows/build-swiftpm.yml b/.github/workflows/build-swiftpm.yml deleted file mode 100644 index dbf8eb8..0000000 --- a/.github/workflows/build-swiftpm.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Build Example - -on: - workflow_dispatch: - workflow_call: - -concurrency: - group: ${{ github.head_ref || github.run_id }} - cancel-in-progress: true - -jobs: - - build: - - runs-on: macOS-13 - - name: Package build - - steps: - - uses: actions/checkout@v3 - - name: Select Xcode - run: sudo xcode-select -switch /Applications/Xcode_15.0.app && /usr/bin/xcodebuild -version - - - name: Build and run tests - run: xcodebuild clean build -skipPackagePluginValidation -scheme OversizeComponents -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.4' | xcpretty && exit ${PIPESTATUS[0]} - diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml deleted file mode 100644 index 68d71ff..0000000 --- a/.github/workflows/bump.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Bump version -on: - workflow_dispatch: - workflow_call: - -jobs: - - tag: - name: Create tag - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: '0' - - - name: Bump version and push tag - uses: anothrNick/github-tag-action@master - env: - GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }} - WITH_V: false diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4f212b..dae59a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,14 +7,43 @@ on: jobs: - build-swiftpm: - name: Build SwiftPM - uses: ./.github/workflows/build-swiftpm.yml + build-oversizeComponents: + name: Build OversizeComponents + uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm.yml@main + with: + package: "OversizeComponents" + secrets: inherit + + build-healthComponents: + name: Build HealthComponents + uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm.yml@main + with: + package: "OversizeHealthComponents" + secrets: inherit + + build-photoComponents: + name: Build PhotoComponents + uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm.yml@main + with: + package: "OversizePhotoComponents" + secrets: inherit + + build-weatherComponents: + name: Build WeatherComponents + uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm.yml@main + with: + package: "OversizeWeatherComponents" + secrets: inherit + + tests: + name: Test + needs: [build-oversizeComponents, build-healthComponents, build-photoComponents, build-weatherComponents] + uses: oversizedev/GithubWorkflows/.github/workflows/test.yml@main secrets: inherit bump: name: Bump version - needs: build-swiftpm - uses: ./.github/workflows/bump.yml + needs: tests + uses: oversizedev/GithubWorkflows/.github/workflows/bump.yml@main secrets: inherit diff --git a/.gitignore b/.gitignore index 3846059..9029d5c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,6 @@ /*.xcodeproj xcuserdata/ DerivedData/ -.swiftpm/config/registries.json -.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +.swiftpm .netrc /Package.resolved