-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (62 loc) · 1.81 KB
/
main.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
55
56
57
58
59
60
61
62
63
64
65
name: CI
on:
push:
branches:
- main
- develop
paths-ignore:
- Docs/**
- README.md
- README-ja.md
pull_request:
branches:
- develop
paths-ignore:
- Docs/**
- README.md
- README-ja.md
env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app
jobs:
stg:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- name: Show Xcode list
run: ls /Applications | grep 'Xcode'
- name: Show Xcode version
run: xcodebuild -version
- name: Install Bundled Gems
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Cache Pods
uses: actions/cache@v3
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Install Pods
run: bundle exec pod install
- name: Translate secrets of base64 into json
env:
GOOGLE_SERVICE: ${{ secrets.GOOGLE_SERVICE_JSON }}
run: echo $GOOGLE_SERVICE | base64 --decode > ./VolleyballScoreApp/output.json
- name: Translate json into plist and generate GoogleService-info.plist
run: plutil -convert xml1 ./VolleyballScoreApp/output.json -o ./VolleyballScoreApp/GoogleService-info.plist
- name: Remove json file
run: rm ./VolleyballScoreApp/output.json
- name: Xcode build
run: make Xcode-build
# テストが入っていないため一旦コメントアウト
# - name: Convert Code coverage to HTML
# run: bundle exec slather coverage --html --output-directory html_report
- uses: actions/upload-artifact@v3
with:
name: test-results
path: build/reports
- uses: actions/upload-artifact@v3
with:
name: test-coverage
path: html_report