-
Notifications
You must be signed in to change notification settings - Fork 63
62 lines (52 loc) · 1.53 KB
/
continuous-integration.yml
File metadata and controls
62 lines (52 loc) · 1.53 KB
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
#
# continuous-integration.yml
# Created by Felix Mau (https://felix.hamburg)
#
name: Continuous Integration
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
# Lint and Format
# Ensures that the code adheres to the defined style guidelines.
lint-and-format:
runs-on: macos-26
steps:
- name: Check out repository code
uses: actions/checkout@v6
- name: Install SwiftFormat via Homebrew
run: brew install swiftformat
- name: Install SwiftLint via Homebrew
run: brew install swiftlint
- name: SwiftFormat
run: make format-check
- name: SwiftLint
run: make lint
# Tests
# Ensures that the package compiles and that all tests pass, including code coverage reporting to Codecov.
tests:
runs-on: macos-26
needs: lint-and-format
steps:
- name: Check out repository code
uses: actions/checkout@v6
- name: Execute tests
run: make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
# Build Example Application
# Ensures that the package can be integrated into a real application, to catch any potential issues e.g. with access control.
build-example-application:
runs-on: macos-26
needs: tests
steps:
- name: Check out repository code
uses: actions/checkout@v6
- name: Build Example Application
run: make build-example-application