Skip to content

chore: use official swift-format #32

chore: use official swift-format

chore: use official swift-format #32

Workflow file for this run

# Copyright (c) 2024 Anass Bouassaba.
#
# Use of this software is governed by the Business Source License
# included in the file LICENSE in the root of this repository.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the GNU Affero General Public License v3.0 only, included in the file
# AGPL-3.0-only in the root of this repository.
name: Lint
on:
pull_request:
branches:
- main
jobs:
lint:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v4
# - name: Lint Using SwiftLint
# uses: norio-nomura/[email protected]
# with:
# args: --strict
runs-on: macos-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set Up swiftlint
run: brew install swiftlint
- name: Lint Using SwiftLint
run: swiftlint lint --strict .
format:
runs-on: macos-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set Up swift-format
run: brew install swift-format
- name: Lint Using swift-format
run: swift format lint -r .
# uses: Iron-Ham/swift-format-linter-action@v5
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}