Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GitHub actions #1351

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions .github/workflows/ci-podspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ on:
- PromiseKit.podspec
jobs:
lint:
runs-on: macos-14
runs-on: macos-15
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.2
- uses: maxim-lobanov/setup-cocoapods@v1
xcode-version: 16.0
- uses: maxim-lobanov/setup-cocoapods@v1.4.0
with:
version: 1.15.0
- uses: actions/checkout@v2
version: 1.15.2
- uses: actions/checkout@v4.2.1
with:
submodules: true
- run: pod lib lint --fail-fast --allow-warnings
18 changes: 7 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

env:
ACTIONS_RUNNER_FORCED_INTERNAL_NODE_VERSION: node16
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16

jobs:
linux:
runs-on: ubuntu-latest
Expand All @@ -26,7 +30,7 @@ jobs:
container:
image: swift:${{ matrix.swift }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4.2.1
- run: swift build -Xswiftc -warnings-as-errors -Xswiftc -swift-version -Xswiftc 3
- run: swift build # generated linuxmain requires Swift 5 sadly

Expand All @@ -46,7 +50,7 @@ jobs:
container:
image: swift:${{ matrix.swift }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4.2.1
- run: swift build -Xswiftc -warnings-as-errors -Xswiftc -swift-version -Xswiftc 4
- run: swift build -Xswiftc -warnings-as-errors -Xswiftc -swift-version -Xswiftc 4.2
- run: swift test --enable-code-coverage --parallel
Expand All @@ -66,14 +70,6 @@ jobs:
with:
file: ./info.lcov

verify-linuxmain:
runs-on: macos-latest
name: linux (validate manifests)
steps:
- uses: actions/checkout@v2
- run: swift test --generate-linuxmain
- run: git diff --exit-code

test:
runs-on: macos-14
strategy:
Expand All @@ -86,7 +82,7 @@ jobs:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.2
- uses: actions/checkout@v2
- uses: actions/checkout@v4.2.1
- uses: sersoft-gmbh/xcodebuild-action@v1
with:
project: PromiseKit.xcodeproj
Expand Down