norio-nomura / action-swiftlint

GitHub Action for SwiftLint
MIT License
369 stars 58 forks source link

Can't use SwiftLint file in repo #46

Open eonist opened 12 months ago

eonist commented 12 months ago

https://github.com/eonist/TestRunner/blob/master/.github/workflows/Tests.yml

But it uses some other SwiftLint file, not the one in the project, any idea how to fix this?

My workflow looks like this:

name: Tests

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
   #Something wrong with swiftlint action, figure it out later
  SwiftLint: ## Adds swift-linting to GH actions
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: GitHub Action for SwiftLint
        uses: norio-nomura/action-swiftlint@3.2.1
        with:
          args: --config .swiftlint.yml
  build:
    runs-on: macos-latest
    steps:
    - uses: actions/checkout@v2
    - name: Build
      run: swift build -v
joshgordon1 commented 9 months ago

@eonist Were you able to resolve this?

eonist commented 9 months ago

Nope. I gave up using SwiftLint in GitHub actions, it was working great for about a year. Just use it locally now. Might dedicate some time in the future to re-add it again to different projects.