-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (33 loc) · 1.63 KB
/
check-leaks.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
36
37
38
39
40
41
# How to setup danger with github actions: https://www.jessesquires.com/blog/2020/04/10/running-danger-on-github-actions/
name: Check leaks
run-name: ${{ github.actor }} is checking for leaks 🚀
on: [pull_request]
jobs:
Explore-Github-Actions:
runs-on: self-hosted
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1.6.0
with:
xcode-version: 14.2.0
- name: ruby versions
run: |
ruby --version
gem --version
bundler --version
# Should help this step to install dependencies. Since this is example project, I will skip this step.
# - name: ruby setup
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: 2.7
# bundler-cache: true
- run: xcodebuild -project MemoryLeaksCheck.xcodeproj -scheme MemoryLeaksCheck -destination 'platform=iOS Simulator,name=iPhone 14 Pro' CONFIGURATION_BUILD_DIR=$PWD/build
- name: Check for leaks
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
run: ./LeaksDetector/leaksdetector --process-name MemoryLeaksCheck -e maestro --maestro-flow-path ./maestro/leaksCheckFlow.yaml -d ./Dangerfile.leaksReport
- run: echo "🍏 This job's status is ${{ job.status }}."