Skip to content

Fix bold and italic button placements for text view #37

Fix bold and italic button placements for text view

Fix bold and italic button placements for text view #37

Workflow file for this run

name: Swift Linters
on:
pull_request:
paths:
- '.github/workflows/swift.yml'
- '.swift.yml'
- '**/*.swift'
jobs:
SwiftLint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: GitHub Action for SwiftLint
uses: norio-nomura/action-swiftlint@3.1.0
env:
DIFF_BASE: ${{ github.base_ref }}
SwiftFormat:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: .build/release/swiftformat
key: linting-swiftformat-0.51.4
- name: Build nicklockwood/SwiftFormat
run: |
if [ -f ".build/release/swiftformat" ]; then
if ! [ -x "$(command -v swift-format)" ]; then
sudo cp -f .build/release/swiftformat /usr/local/bin/swiftformat
fi
else
git clone --depth 1 --branch 0.51.4 https://github.com/nicklockwood/SwiftFormat
cd SwiftFormat
swift build --disable-sandbox -c release
mv .build .. && cd ..
rm -rf SwiftFormat
sudo cp -f .build/release/swiftformat /usr/local/bin/swiftformat
fi
- name: SwiftFormat
run: |
swiftformat --version
swiftformat . --config .swiftformat --lint