Skip to content

Commit

Permalink
Add linting action
Browse files Browse the repository at this point in the history
Signed-off-by: Henrik Panhans <[email protected]>
  • Loading branch information
henrik-dmg committed Oct 13, 2024
1 parent 4067bb7 commit 05817c3
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Linting

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: macos-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install swift-format
run: brew install swift-format
- name: Lint code
run: Scripts/lint-swift-code
14 changes: 10 additions & 4 deletions .github/workflows/swift.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
name: Swift
name: Tests

on: [push]
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: macos-14
runs-on: macos-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "15.2"
xcode-version: "16.0"
- name: Build
run: swift build -v
- name: Run tests
Expand Down

0 comments on commit 05817c3

Please sign in to comment.