-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (44 loc) · 1 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
name: CI
# Controls when the action will run.
on:
push:
branches:
- master
pull_request:
branches:
- '**'
types: [ opened, edited, synchronize, reopened ]
jobs:
build:
runs-on: macos-14
steps:
- uses: actions/checkout@v2
- name: Init
run: |
make init
- name: Force select xcode 15
run: |
sudo xcode-select -switch /Applications/Xcode_15.2.app
- name: Build
run: |
make build
- name: SPM Build
run: |
make spm_build
- name: Tests
run: |
make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1.2.1
- name: documentation
if: github.ref == 'refs/heads/master'
run: |
make doc
- name: Commit changes
uses: EndBug/add-and-commit@v4
with:
author_name: chausovSurfStudio
author_email: chausov@surf.dev
message: "Updates for documentation"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}