-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 1.04 KB
/
ios.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
permissions:
pull-requests: write # required for Danger to post comments
issues: write # required for Danger to post comments
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 100
- 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
- name: Run Danger
uses: MeilCli/danger-action@v5
with:
danger_file: 'RecipeApp/Dangerfile'
danger_id: 'danger-pr'
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}