Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 50 additions & 59 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- name: Setup Ruby
uses: ruby/[email protected]
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/[email protected]
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/[email protected]
with:
xcode-version: latest
- uses: actions/[email protected]
- name: Test
run: swift test

POD:

runs-on: macos-11
- uses: maxim-lobanov/[email protected]
with:
xcode-version: latest
- uses: actions/checkout@v4
- name: Test
run: swift test

POD:
runs-on: macos-14
steps:
- uses: actions/[email protected]
- 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/[email protected]
with:
xcode-version: latest
- uses: actions/[email protected]
- name: Build
run: carthage build --no-skip-current --use-xcframeworks
# - name: Archive
# run: carthage archive
# - uses: actions/[email protected]
# with:
# name: SwiftQueue
# path: SwiftQueue.framework.zip
- uses: maxim-lobanov/[email protected]
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/[email protected]
with:
xcode-version: latest
- uses: actions/[email protected]
- 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/[email protected]
- uses: maxim-lobanov/[email protected]
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