Skip to content

417-72KI/danger-swiftlint

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date
Dec 5, 2024
May 3, 2021
Mar 18, 2024
Apr 7, 2020
May 3, 2021
Mar 23, 2025
Jan 10, 2020
Dec 5, 2024
Dec 5, 2024
Mar 10, 2025
Sep 22, 2021
Sep 19, 2023

Repository files navigation

Docker Hub

Docker image for Danger-Swift using SwiftLint

Usage Sample

Local Docker

$ docker run -v `pwd`:`pwd` -w `pwd` 41772ki/danger-swiftlint local

GitHub Actions

name: Danger
on:
  pull_request:
    paths:
      - '.swiftlint.yml'
      - '**/*.swift'
jobs:
  Danger:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Danger
        uses: 417-72KI/danger-swiftlint@v6.0 # Look at the `Note for version`
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Note for version

Important

Docker images in v5.8 and higher versions are updated for once a week.
v5.7 and below also can be used in GitHub Actions, but Docker images of them are no longer updated.

tag Swift version
v5.5+ Same as the tag
v4 5.4
v3 5.3
v2 5.2
v1 5.1