Add .editorconfig
for consistent code formatting (#348)
#145
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: Format | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: | |
group: format-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
swift_format: | |
name: swift-format | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Xcode Select | |
run: sudo xcode-select -s /Applications/Xcode_14.0.1.app | |
- name: Tap | |
run: brew tap pointfreeco/formulae | |
- name: Install | |
run: brew install Formulae/[email protected] | |
- name: Format | |
run: make format | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Run swift-format | |
branch: 'main' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |