Skip to content

Commit

Permalink
chore: add check action
Browse files Browse the repository at this point in the history
  • Loading branch information
VladislavFitz committed Feb 1, 2024
1 parent 9fcbf63 commit 47675d3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Swift Format Check

on: [pull_request]

jobs:
format-check:
name: Swift Format Check
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- uses: swift-actions/setup-swift@v1
with:
swift-version: 5.8

- name: Install Swift Format
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev
swift package install swift-format --force
- name: Run Swift Format Check
run: |
swift-format lint ./Sources -srp

0 comments on commit 47675d3

Please sign in to comment.