Skip to content

Commit

Permalink
Test SwiftLint Action
Browse files Browse the repository at this point in the history
  • Loading branch information
edigaryev committed May 15, 2024
0 parents commit c252eb5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/swiftlint-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Test SwiftLint Action

on:
push:

jobs:
test-swiftlint-action:
name: "Test SwiftLint Action"

strategy:
matrix:
runs_on:
- name: cirrus-macos-arm64
image: "ghcr.io/cirruslabs/macos-sonoma-xcode:latest"

runs-on: ${{ matrix.runs_on.image }}

steps:
- uses: actions/checkout@v4
- uses: cirruslabs/swiftlint-action@basic-implementation
4 changes: 4 additions & 0 deletions Test.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Foundation

// TODO: trigger linter warning

Check warning on line 3 in Test.swift

View workflow job for this annotation

GitHub Actions / Test SwiftLint Action (cirrus-macos-arm64, ghcr.io/cirruslabs/macos-sonoma-xcode:latest)

Todo (todo)

TODOs should be resolved (trigger linter warning)
print("Test!")

0 comments on commit c252eb5

Please sign in to comment.