refactor(API): unify void and data request methods to allow autocompl… #121
This file contains 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: CI | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
jobs: | |
build: | |
name: Build + Test (${{ matrix.os }}, Swift ${{ matrix.swift-version }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
swift-version: 5.9 | |
- os: macos-14 | |
swift-version: 5.9 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Swift ${{ matrix.swift-version }} | |
uses: slashmo/install-swift@v0.4.0 | |
with: | |
version: ${{ matrix.swift-version }} | |
- name: Build | |
run: swift build -v | |
- name: Test | |
run: swift test | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run SwiftLint | |
uses: norio-nomura/action-swiftlint@3.2.1 | |
with: | |
args: --strict | |
format: | |
name: Check formatting | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install apple/swift-format | |
run: brew install swift-format | |
- name: Check formatting | |
run: swift-format lint -rs --color-diagnostics . |