CONFIG: Update GitHub actions to use M1 runners #73
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |