Deploy, Adsense, Analytics e Esteiras - CI/CD Pipelines e esteiras #4
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: Swiftlint Pipeline | |
on: | |
pull_request: | |
branches: | |
- main | |
- develop | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Install Swiftlint | |
run: brew install swiftlint | |
- name: Run Swiftlint and Save Report | |
run: | |
swiftlint > swiftlint-report.txt || true | |
continue-on-error: true | |
- name: Upload Swiftlint Report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: swiftlint-report | |
path: swiftlint-report.txt | |