'How can I run swiftlint on GitHub Actions for linux?
Since GitHub mac actions are slow and expensive, how can I run swiftlint under a linux environment in an action?
Solution 1:[1]
The easiest way is to use the official swiftlint docker image as the container for the action:
name: SwiftLint
on:
workflow_dispatch:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/realm/swiftlint:5.5-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: SwiftLint
run: |
swiftlint --reporter github-actions-logging --strict
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | cobbal |
