Skip to content

Commit 34fa77b

Browse files
authored
Release Candidate 3.0.0 [#40]
Release Candidate `3.0.0`
2 parents e510a4c + 7c200dd commit 34fa77b

File tree

377 files changed

+12770
-310
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

377 files changed

+12770
-310
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build and Test Action
2+
3+
inputs:
4+
scheme:
5+
required: true
6+
type: string
7+
destination:
8+
required: true
9+
type: string
10+
name:
11+
required: true
12+
type: string
13+
test_plan:
14+
required: false
15+
type: string
16+
generate_project:
17+
required: false
18+
type: boolean
19+
default: true
20+
21+
runs:
22+
using: "composite"
23+
24+
steps:
25+
- name: Install Dependencies & Generate project
26+
shell: bash
27+
run: |
28+
if [ "${{ inputs.generate_project }}" = "true" ]; then
29+
make setup_build_tools
30+
make generate
31+
fi
32+
- name: ${{ inputs.name }}
33+
shell: bash
34+
run: |
35+
if [ -n "${{ inputs.test_plan }}" ]; then
36+
xcodebuild clean test \
37+
-scheme ${{ inputs.scheme }} \
38+
-destination "${{ inputs.destination }}" \
39+
-testPlan ${{ inputs.test_plan }} \
40+
-enableCodeCoverage YES \
41+
-resultBundlePath "test_output/${{ inputs.name }}.xcresult" || exit 1
42+
else
43+
xcodebuild clean test \
44+
-scheme ${{ inputs.scheme }} \
45+
-destination "${{ inputs.destination }}" \
46+
-enableCodeCoverage YES \
47+
-resultBundlePath "test_output/${{ inputs.name }}.xcresult" || exit 1
48+
fi
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Upload a Test Coverage Report
2+
3+
inputs:
4+
filename:
5+
required: true
6+
type: string
7+
scheme_name:
8+
required: true
9+
type: string
10+
token:
11+
description: 'A CodeCov Token'
12+
required: true
13+
14+
runs:
15+
using: "composite"
16+
17+
steps:
18+
- name: Dir
19+
shell: bash
20+
run: pwd && ls -al
21+
- name: Upload coverage reports to Codecov
22+
uses: codecov/codecov-action@v3.1.0
23+
with:
24+
token: ${{ inputs.token }}
25+
xcode: true
26+
flags: ${{ inputs.scheme_name }}
27+
xcode_archive_path: test_output/${{ inputs.filename }}.xcresult
28+
- name: Dir
29+
shell: bash
30+
run: pwd && ls -al
31+
- uses: actions/upload-artifact@v4
32+
with:
33+
name: ${{ inputs.filename }}
34+
path: test_output

.github/dependabot.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,26 @@
55

66
version: 2
77
updates:
8-
- package-ecosystem: "swift" # See documentation for possible values
9-
directory: "/" # Location of package manifests
8+
- package-ecosystem: github-actions
9+
directory: /
10+
open-pull-requests-limit: 10
1011
schedule:
11-
interval: "daily"
12+
interval: daily
13+
time: '07:00'
14+
timezone: Europe/Berlin
15+
assignees:
16+
- nik3212
17+
reviewers:
18+
- nik3212
19+
20+
- package-ecosystem: swift
21+
directory: /
22+
open-pull-requests-limit: 10
23+
schedule:
24+
interval: daily
25+
time: '07:00'
26+
timezone: Europe/Berlin
27+
assignees:
28+
- nik3212
29+
reviewers:
30+
- nik3212

.github/workflows/danger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
ruby-version: 3.1.4
1919
bundler-cache: true
2020
- name: Checkout code
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v4
2222
- name: Setup gems
2323
run: |
2424
gem install bundler

.github/workflows/ci.yml renamed to .github/workflows/flare.yml

Lines changed: 50 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,13 @@ on:
99
paths:
1010
- '.swiftlint.yml'
1111
- ".github/workflows/**"
12+
- "Package@swift-5.7.swift"
13+
- "Package@swift-5.8.swift"
1214
- "Package.swift"
13-
- "Source/**"
15+
- "Source/Flare/**"
1416
- "Tests/**"
1517

1618
jobs:
17-
SwiftLint:
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@v3
21-
- name: GitHub Action for SwiftLint
22-
uses: norio-nomura/action-swiftlint@3.2.1
23-
with:
24-
args: --strict
25-
env:
26-
DIFF_BASE: ${{ github.base_ref }}
2719
macOS:
2820
name: ${{ matrix.name }}
2921
runs-on: ${{ matrix.runsOn }}
@@ -47,19 +39,20 @@ jobs:
4739
runsOn: macOS-12
4840
name: "macOS 12, Xcode 14.1, Swift 5.7.1"
4941
steps:
50-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
5143
- name: ${{ matrix.name }}
52-
run: xcodebuild test -scheme "Flare" -destination "platform=macOS" clean -enableCodeCoverage YES -resultBundlePath "test_output/${{ matrix.name }}.xcresult" || exit 1
53-
- name: Upload coverage reports to Codecov
54-
uses: codecov/codecov-action@v3.1.0
55-
with:
56-
token: ${{ secrets.CODECOV_TOKEN }}
57-
xcode: true
58-
xcode_archive_path: test_output/${{ matrix.name }}.xcresult
59-
- uses: actions/upload-artifact@v4
44+
uses: ./.github/actions/build_and_test
6045
with:
46+
scheme: Flare
47+
destination: "platform=macOS"
6148
name: ${{ matrix.name }}
62-
path: test_output
49+
generate_project: false
50+
- name: Upload test coverage reports to Codecov
51+
uses: ./.github/actions/upload_test_coverage_report
52+
with:
53+
scheme_name: Flare
54+
filename: ${{ matrix.name }}
55+
token: ${{ secrets.CODECOV_TOKEN }}
6356

6457
iOS:
6558
name: ${{ matrix.name }}
@@ -80,17 +73,20 @@ jobs:
8073
xcode: "Xcode_14.3.1"
8174
runsOn: macos-13
8275
steps:
83-
- uses: actions/checkout@v3
84-
- name: Install Dependencies
85-
run: make setup_build_tools
86-
- name: Generate project
87-
run: make generate
76+
- uses: actions/checkout@v4
8877
- name: ${{ matrix.name }}
89-
run: xcodebuild test -scheme "Flare" -destination "${{ matrix.destination }}" -testPlan AllTests clean -enableCodeCoverage YES -resultBundlePath "test_output/${{ matrix.name }}.xcresult" || exit 1
90-
- uses: actions/upload-artifact@v4
78+
uses: ./.github/actions/build_and_test
9179
with:
80+
scheme: Flare
81+
destination: ${{ matrix.destination }}
9282
name: ${{ matrix.name }}
93-
path: test_output
83+
test_plan: AllTests
84+
- name: Upload test coverage reports to Codecov
85+
uses: ./.github/actions/upload_test_coverage_report
86+
with:
87+
scheme_name: Flare
88+
filename: ${{ matrix.name }}
89+
token: ${{ secrets.CODECOV_TOKEN }}
9490

9591
tvOS:
9692
name: ${{ matrix.name }}
@@ -111,23 +107,20 @@ jobs:
111107
xcode: "Xcode_14.3.1"
112108
runsOn: macos-13
113109
steps:
114-
- uses: actions/checkout@v3
115-
- name: Install Dependencies
116-
run: make setup_build_tools
117-
- name: Generate project
118-
run: make generate
110+
- uses: actions/checkout@v4
119111
- name: ${{ matrix.name }}
120-
run: xcodebuild test -scheme "Flare" -destination "${{ matrix.destination }}" -testPlan AllTests clean -enableCodeCoverage YES -resultBundlePath "test_output/${{ matrix.name }}.xcresult" || exit 1
121-
- name: Upload coverage reports to Codecov
122-
uses: codecov/codecov-action@v3.1.0
123-
with:
124-
token: ${{ secrets.CODECOV_TOKEN }}
125-
xcode: true
126-
xcode_archive_path: test_output/${{ matrix.name }}.xcresult
127-
- uses: actions/upload-artifact@v4
112+
uses: ./.github/actions/build_and_test
128113
with:
114+
scheme: Flare
115+
destination: ${{ matrix.destination }}
129116
name: ${{ matrix.name }}
130-
path: test_output
117+
test_plan: AllTests
118+
- name: Upload test coverage reports to Codecov
119+
uses: ./.github/actions/upload_test_coverage_report
120+
with:
121+
scheme_name: Flare
122+
filename: ${{ matrix.name }}
123+
token: ${{ secrets.CODECOV_TOKEN }}
131124

132125
watchOS:
133126
name: ${{ matrix.name }}
@@ -152,23 +145,20 @@ jobs:
152145
xcode: "Xcode_14.3.1"
153146
runsOn: macos-13
154147
steps:
155-
- uses: actions/checkout@v3
156-
- name: Install Dependencies
157-
run: make setup_build_tools
158-
- name: Generate project
159-
run: make generate
148+
- uses: actions/checkout@v4
160149
- name: ${{ matrix.name }}
161-
run: xcodebuild test -scheme "Flare" -destination "${{ matrix.destination }}" -testPlan UnitTests clean -enableCodeCoverage YES -resultBundlePath "test_output/${{ matrix.name }}.xcresult" || exit 1
162-
- name: Upload coverage reports to Codecov
163-
uses: codecov/codecov-action@v3.1.0
164-
with:
165-
token: ${{ secrets.CODECOV_TOKEN }}
166-
xcode: true
167-
xcode_archive_path: test_output/${{ matrix.name }}.xcresult
168-
- uses: actions/upload-artifact@v4
150+
uses: ./.github/actions/build_and_test
169151
with:
152+
scheme: Flare
153+
destination: ${{ matrix.destination }}
170154
name: ${{ matrix.name }}
171-
path: test_output
155+
test_plan: UnitTests
156+
- name: Upload test coverage reports to Codecov
157+
uses: ./.github/actions/upload_test_coverage_report
158+
with:
159+
scheme_name: Flare
160+
filename: ${{ matrix.name }}
161+
token: ${{ secrets.CODECOV_TOKEN }}
172162

173163
spm:
174164
name: ${{ matrix.name }}
@@ -187,7 +177,7 @@ jobs:
187177
xcode: "Xcode_14.3.1"
188178
runsOn: macos-13
189179
steps:
190-
- uses: actions/checkout@v3
180+
- uses: actions/checkout@v4
191181
- name: ${{ matrix.name }}
192182
run: swift build -c release --target Flare
193183

@@ -212,7 +202,7 @@ jobs:
212202
env:
213203
DEVELOPER_DIR: /Applications/Xcode_14.1.app/Contents/Developer
214204
steps:
215-
- uses: actions/checkout@v2
205+
- uses: actions/checkout@v4
216206
- name: Discover typos
217207
run: |
218208
export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/3.11/bin"
@@ -234,6 +224,6 @@ jobs:
234224
# name: "visionOS 1.0"
235225
# scheme: "Flare"
236226
# steps:
237-
# - uses: actions/checkout@v3
227+
# - uses: actions/checkout@v4
238228
# - name: ${{ matrix.name }}
239229
# run: xcodebuild test -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" clean || exit 1

0 commit comments

Comments
 (0)