-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 916 Bytes
/
CI.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
42
43
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: macOS-13
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1.6.0
with:
xcode-version: 15.2
- name: Bundle install
run: bundle install
- name: Lint
run: |
set -o pipefail
swiftlint
- name: Run iOS tests
run: make test-ios
- name: Danger action
uses: MeilCli/danger-action@v6.0.1
if: github.event_name == 'pull_request'
with:
plugins_file: 'Gemfile'
install_path: 'vendor/bundle'
danger_file: 'Dangerfile'
danger_id: 'danger-pr'
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.1.0
with:
swift: true
swift_project: MagicImages
verbose: true