feat(New Ci): New Updates ✨ #54
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: Danger | |
on: | |
pull_request: | |
branches: [ main, develop ] | |
jobs: | |
Danger: | |
permissions: write-all | |
runs-on: macos-13 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Xcode | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '15.2' | |
- name: Setup Danger | |
run: | | |
git clone https://github.com/MaatheusGois/DangerSwift && rm -rf DangerSwift/.git Readme.md | |
mv DangerSwift/* . | |
- name: Test Stage | |
run: | | |
bundle install | |
bundle exec fastlane test | |
- name: Danger Stage | |
run: | | |
brew install danger/tap/danger-js | |
swift build | |
swift run danger-swift ci --verbose | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }} |