Update docs and minor code visibility for consistency #23
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: "🧹 | Format | common-shell" | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - '**' | |
| defaults: | |
| run: | |
| working-directory: . | |
| jobs: | |
| swift-format: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| container: swift:6.1-noble | |
| steps: | |
| - name: Checkout (with submodules) | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Download Swift Format configuration | |
| run: | | |
| command -v curl || (apt-get update -y && apt-get install -y curl) | |
| curl -O https://raw.githubusercontent.com/wrkstrm/configs/main/linting/.swift-format | |
| - name: Swift Format (lint only) | |
| run: | | |
| swift format lint --configuration .swift-format --strict --recursive . |