-
Notifications
You must be signed in to change notification settings - Fork 20
54 lines (45 loc) · 1.3 KB
/
test.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
44
45
46
47
48
49
50
51
52
53
54
name: 'Tests'
on:
pull_request:
type: [opened, synchronize, reopened]
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: 'Run Tests'
runs-on: macos-14
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
steps:
- name: 'Checkout code'
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.2'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: 'Setup environment'
run: rake setup
shell: bash
- name: 'Test'
run: bundle exec rake xcode:tests[true]
shell: bash
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
- name: 'Archive logs'
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: "test-logs-${{ github.run_attempt }}"
path: ${{ vars.ARTIFACTS_DEFAULT_PATH }}/
- name: 'Archive results'
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: "test-results-${{ github.run_attempt }}"
path: ${{ vars.TEST_REPORTS_DEFAULT_PATH }}/