-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (54 loc) · 1.63 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CI
on:
pull_request:
branches:
- main
jobs:
build:
name: Build Styles
runs-on: ubuntu-latest
outputs:
sha: ${{ steps.git_commit.outputs.sha }}
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm i
- name: Build
run: npm run build
- name: Commit build files
id: git_commit
uses: zwaldowski/git-commit-action@v1
with:
commit_message: Add built client styles
- run: git push
- uses: Sibz/github-status-action@v1
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
sha: ${{ steps.git_commit.outputs.sha }}
state: success
context: Built client styles
test-ios:
name: Test iOS Output
needs: build
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Switch to Xcode 11
run: ls /Applications; sudo xcode-select -s /Applications/Xcode_11.7.app
- run: swift package generate-xcodeproj
- name: Cache build
uses: actions/cache@v1
with:
path: ./.build
key: ${{ runner.os }}-${{ hashFiles('./Package.swift') }}
- run: xcodebuild -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 8,OS=13.5' -scheme QuartzStyles-Package test | xcpretty --test --color
- uses: Sibz/github-status-action@v1
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
sha: ${{ needs.build.outputs.sha }}
state: success
context: Test iOS output