Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swiftlint and .swiftlint.yml in submodule #40

Open
pgawlowski opened this issue Jul 21, 2021 · 0 comments
Open

Swiftlint and .swiftlint.yml in submodule #40

pgawlowski opened this issue Jul 21, 2021 · 0 comments

Comments

@pgawlowski
Copy link

pgawlowski commented Jul 21, 2021

We are using config like below:

name: Swift

on:
  pull_request:
    types:
      - opened
      - edited
      - reopened
      - synchronize

jobs:
  swiftlint:
    name: Swiftlint
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          ssh-key: ${{ secrets.SSH_KEY }}
          submodules: recursive
      - name: Swiftlint
        uses: norio-nomura/[email protected]
        with:
          # https://github.com/realm/SwiftLint
          args: --strict --force-exclude
.swiftlint.yml file is excluding:

excluded:
  - Pods
  - SourcePackages
  - fastlane/SnapshotHelper.swift //This one is new!

Locally everything works fine. Our .swiftlint.yml file is in submodule. Checkout is fetching submodules correctly. I've verified commit and it is correct one. Right after checkout we are performing step named Swiftlint and we are constantly getting errors on excluded file fastlane/SnapshotHelper.swift. It seems like despite the fact that submodule fetching is successfull it is still using older (cached?) version of .swiftlint.yml from previous submodule commit.

Currently we are running out of ideas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant