-
Notifications
You must be signed in to change notification settings - Fork 17
34 lines (30 loc) · 980 Bytes
/
Copy pathswift.yml
File metadata and controls
34 lines (30 loc) · 980 Bytes
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
name: Swift
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
- name: Codecov
uses: codecov/codecov-action@v1.0.7
with:
# User defined upload name. Visible in Codecov UI
name: # optional
# Repository upload token - get it from codecov.io. Required only for private repositories
token: # optional
# Path to coverage file to upload
file: # optional
# Flag upload to group coverage metrics (e.g. unittests | integration | ui,chrome)
flags: # optional
# Environment variables to tag the upload with (e.g. PYTHON | OS,PYTHON)
env_vars: # optional
# Specify whether or not CI build should fail if Codecov runs into an error during upload
fail_ci_if_error: # optional