Skip to content

Merge pull request #49 from bilaalrashid/bilaal/readme-link-fix #74

Merge pull request #49 from bilaalrashid/bilaal/readme-link-fix

Merge pull request #49 from bilaalrashid/bilaal/readme-link-fix #74

Workflow file for this run

name: Swift
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
container:
image: ghcr.io/realm/swiftlint:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: SwiftLint
run: swiftlint --config .swiftlint.yml --reporter github-actions-logging --strict
test:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
swift: ["6.0"]
runs-on: ${{ matrix.os }}
needs: lint
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Swift
uses: NeedleInAJayStack/setup-swift@feat/swift-6
with:
swift-version: ${{ matrix.swift }}
- name: Run tests
run: swift test