Skip to content

Add github action worflow and Danger bot #25

Add github action worflow and Danger bot

Add github action worflow and Danger bot #25

Workflow file for this run

name: Pull request workflow
on:
push:
branches: [ "develop", "main"]
pull_request:
branches: [ "develop", "main" ]
jobs:
build:
name: Build and Test default scheme using any available iPhone simulator
runs-on: macos-12
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install pods
run: cd RecipeApp && pod install
- name: Install Bundles
run: cd RecipeApp && bundle install
- name: Run tests
run: cd RecipeApp && bundle exec fastlane tests
- name: Run code coverage
run: cd RecipeApp && bundle exec fastlane tests_coverage
- uses: MeilCli/danger-action@v5
with:
danger_file: 'RecipeApp/Dangerfile'
danger_id: 'danger-pr'
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.BOT_TOKEN }}