From a7ffeb94447e3e199e26925bc6d2fbf50ce3cbe0 Mon Sep 17 00:00:00 2001 From: Anass Bouassaba Date: Sun, 24 Nov 2024 10:28:54 +0100 Subject: [PATCH] ci: update lint GitHub workflow --- .github/workflows/lint.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 030f22e..5763240 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -24,7 +24,9 @@ jobs: container: image: swift:5.10-noble steps: - - uses: actions/checkout@v2 + - name: Checkout Repository + uses: actions/checkout@v4 + - name: Set Up swiftlint run: | sudo apt-get update && sudo apt-get install -y unzip curl @@ -34,10 +36,10 @@ jobs: run: swiftlint lint --strict . format: - runs-on: ubuntu-latest - container: - image: swift:5.10-noble + runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - name: Checkout Repository + uses: actions/checkout@v4 + - name: Lint Using swift-format - run: swift format lint -r . + uses: feather-actions/run-swift-format@0.0.2