Skip to content

CONFIG: Update GitHub actions to use M1 runners #73

CONFIG: Update GitHub actions to use M1 runners

CONFIG: Update GitHub actions to use M1 runners #73

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
concurrency:
group: "lint-${{ github.head_ref || github.run_id }}"
cancel-in-progress: true
jobs:
swiftlint:
name: Swiftlint
runs-on: ubuntu-latest
container:
image: docker://ghcr.io/realm/swiftlint:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Swiftlint
run: swiftlint --strict --reporter github-actions-logging
markdownlint:
name: Markdownlint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Lint README
run: docker run -v $PWD:/workdir ghcr.io/igorshubovych/markdownlint-cli:latest "README.md"
- name: Lint DocC files
run: docker run -v $PWD:/workdir ghcr.io/igorshubovych/markdownlint-cli:latest "**/*.docc/**/*.md"