diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 0367202..ecc4aa4 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -3,78 +3,69 @@ name: Swift on: push: branches: - - master + - master pull_request: branches: - - master + - master jobs: DANGER: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3.0.2 - - name: Setup Ruby - uses: ruby/setup-ruby@v1.117.0 - with: - ruby-version: 3.1.2 - - name: Install blunder and install deps. - run: | - gem install bundler - bundle install - - name: Run danger - run: | - bundle exec danger - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/checkout@v4 + - name: Setup Ruby + uses: ruby/setup-ruby@v1.172.0 + with: + ruby-version: 3.3.0 + - name: Install bundler and install deps + run: | + gem install bundler + bundle install + - name: Run danger + run: bundle exec danger + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SPM: - - runs-on: macos-12 - + runs-on: macos-14 steps: - - uses: maxim-lobanov/setup-xcode@v1.4.1 - with: - xcode-version: latest - - uses: actions/checkout@v3.0.2 - - name: Test - run: swift test - - POD: - - runs-on: macos-11 + - uses: maxim-lobanov/setup-xcode@v1.6.0 + with: + xcode-version: latest + - uses: actions/checkout@v4 + - name: Test + run: swift test + POD: + runs-on: macos-14 steps: - - uses: actions/checkout@v3.0.2 - - name: Lint - run: pod lib lint - - CARTHAGE: - - runs-on: macos-12 + - uses: actions/checkout@v4 + - name: Lint + run: pod lib lint + CARTHAGE: + runs-on: macos-14 steps: - - uses: maxim-lobanov/setup-xcode@v1.4.1 - with: - xcode-version: latest - - uses: actions/checkout@v3.0.2 - - name: Build - run: carthage build --no-skip-current --use-xcframeworks - # - name: Archive - # run: carthage archive - # - uses: actions/upload-artifact@v3.1.0 - # with: - # name: SwiftQueue - # path: SwiftQueue.framework.zip + - uses: maxim-lobanov/setup-xcode@v1.6.0 + with: + xcode-version: latest + - uses: actions/checkout@v4 + - name: Build + run: carthage build --no-skip-current --use-xcframeworks XCODE: - - runs-on: macos-12 - + runs-on: macos-14 steps: - - uses: maxim-lobanov/setup-xcode@v1.4.1 - with: - xcode-version: latest - - uses: actions/checkout@v3.0.2 - - name: Build - run: xcodebuild -project "SwiftQueue.xcodeproj" -scheme "SwiftQueue macOS" -destination "arch=x86_64" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test -enableCodeCoverage YES | xcpretty - - uses: codecov/codecov-action@v3.1.1 + - uses: maxim-lobanov/setup-xcode@v1.6.0 + with: + xcode-version: latest + - uses: actions/checkout@v4 + - name: Build and Test + run: | + xcodebuild -project "SwiftQueue.xcodeproj" \ + -scheme "SwiftQueue macOS" \ + -destination "arch=x86_64" \ + -configuration Debug \ + ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES \ + test -enableCodeCoverage YES | xcpretty + - uses: codecov/codecov-action@v4 \ No newline at end of file