Proxy URL support, gzip support, tailLines
parameter on log requests, and some other minor tweaks
#159
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "swiftkube-client-ci" | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "*" ] | |
jobs: | |
swiftformat-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install SwiftFormat | |
uses: Cyberbeni/install-swift-tool@v2 | |
with: | |
url: https://github.com/nicklockwood/SwiftFormat | |
- name: Lint Sources | |
run: swiftformat --lint Sources | |
iOS: | |
name: Test iOS | |
runs-on: macOS-latest | |
strategy: | |
matrix: | |
destination: | |
- "platform=iOS Simulator,OS=17.5,name=iPhone 15 Pro" | |
- "platform=iOS Simulator,OS=18.2,name=iPhone 16 Pro" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: iOS - ${{ matrix.destination }} | |
run: set -o pipefail && xcodebuild -scheme SwiftkubeClient -destination "${{ matrix.destination }}" clean build | xcpretty | |
build: | |
name: Swift ${{ matrix.swift }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
continue-on-error: true | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, macos-latest] | |
swift: ["5.9", "5.10", "6.0"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: SPM Cache | |
uses: actions/cache@v4 | |
with: | |
path: .build | |
key: ${{ matrix.os }}-${{ matrix.swift }}-${{ hashFiles('**/Package.resolved') }} | |
restore-keys: | | |
${{ matrix.os }}-${{ matrix.swift }}- | |
# - name: Install runtime for macOS | |
# continue-on-error: true | |
# if: matrix.os == 'macos-latest' | |
# run: | | |
# brew install docker-machine docker | |
# brew services start docker-machine | |
# sudo docker --version | |
# sysctl hw.physicalcpu hw.logicalcpu | |
- name: Start minikube | |
if: matrix.os == 'ubuntu-22.04' | |
uses: medyagh/setup-minikube@latest | |
id: minikube | |
with: | |
minikube-version: 1.35.0 | |
- uses: swift-actions/setup-swift@v2 | |
with: | |
swift-version: ${{ matrix.swift }} | |
- name: Get swift version | |
run: swift --version | |
- name: Build | |
run: swift build | |
- name: Test Linux | |
if: matrix.os == 'ubuntu-22.04' | |
run: swift test | |
- name: Test macOS | |
if: matrix.os == 'macos-latest' | |
run: swift test --skip K8s |