Skip to content

Commit e8c6d23

Browse files
committed
Initial commit
0 parents  commit e8c6d23

16 files changed

Lines changed: 738 additions & 0 deletions

.github/pull_request_template.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# *Name of the PR*
2+
3+
## :recycle: Current situation
4+
*Describe the current situation (if possible with and exemplary (or real) code snippet and/or where this is used)*
5+
6+
## :bulb: Proposed solution
7+
*Describe the solution (if possible with and exemplary (or real) code snippet)*
8+
9+
### Problem that is solved
10+
*Provide a description and link issues that are solved*
11+
12+
### Implications
13+
*Describe the implications, e.g. refactoring*
14+
15+
## :heavy_plus_sign: Additional Information
16+
*Provide some additional information if possible*
17+
18+
### Related PRs
19+
*Reference the related PRs*
20+
21+
### Testing
22+
*Are there tests included? If yes, which situations are tested and which corner cases are missing?*
23+
24+
### Reviewer Nudging
25+
*Where should the reviewer start, where is a good entry point?*

.github/release-drafter.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
branches: [release]
2+
name-template: '$NEXT_PATCH_VERSION'
3+
tag-template: '$NEXT_PATCH_VERSION'
4+
categories:
5+
- title: '🚀 Features'
6+
labels:
7+
- 'feature'
8+
- 'enhancement'
9+
- title: '🐛 Bug Fixes'
10+
labels:
11+
- 'fix'
12+
- 'bugfix'
13+
- 'bug'
14+
- title: '🧰 Maintenance'
15+
label: 'chore'
16+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
17+
template: |
18+
## Changes
19+
20+
$CHANGES
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- release
8+
pull_request:
9+
branches:
10+
- develop
11+
- release
12+
workflow_dispatch:
13+
14+
jobs:
15+
latest-beta-swift-version:
16+
name: Latest (Beta) Swift Version
17+
runs-on: macos-11
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: maxim-lobanov/setup-xcode@v1.2.3
21+
with:
22+
xcode-version: latest
23+
- uses: actions/cache@v2
24+
with:
25+
path: .build
26+
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
27+
- name: Check Xcode version
28+
run: xcodebuild -version
29+
- name: Check Swift version
30+
run: swift --version
31+
- name: Debug Build & Test
32+
run: swift test
33+
macos:
34+
name: macOS ${{ matrix.configuration }}
35+
runs-on: macos-11
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
configuration: [debug, release, release_testing]
40+
steps:
41+
- uses: actions/checkout@v2
42+
- uses: maxim-lobanov/setup-xcode@v1.2.3
43+
with:
44+
xcode-version: latest-stable
45+
- uses: actions/cache@v2
46+
with:
47+
path: .build
48+
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
49+
- name: Check Xcode version
50+
run: xcodebuild -version
51+
- name: Check Swift version
52+
run: swift --version
53+
- name: Release Build
54+
if: matrix.configuration == 'release'
55+
run: swift build -c release
56+
- name: Release Build & Test
57+
if: matrix.configuration == 'release_testing'
58+
run: swift test -c release -Xswiftc -enable-testing -Xswiftc -DRELEASE_TESTING
59+
- name: Debug Build & Test
60+
if: matrix.configuration == 'debug'
61+
run: swift test -c debug --enable-code-coverage -Xswiftc -DCOVERAGE
62+
- name: Convert coverage report
63+
if: matrix.configuration == 'debug'
64+
run: xcrun llvm-cov export -format="lcov" .build/debug/ApodiniTemplatePackageTests.xctest/Contents/MacOS/ApodiniTemplatePackageTests -instr-profile .build/debug/codecov/default.profdata > coverage.lcov
65+
- name: Upload coverage to Codecov
66+
uses: codecov/codecov-action@v1
67+
linux:
68+
name: Linux ${{ matrix.linux }} ${{ matrix.configuration }}
69+
container:
70+
image: swift:${{ matrix.linux }}
71+
runs-on: ubuntu-latest
72+
strategy:
73+
fail-fast: false
74+
matrix:
75+
linux: [bionic, xenial, focal, amazonlinux2, centos8]
76+
configuration: [debug, release]
77+
steps:
78+
- uses: actions/checkout@v2
79+
- uses: actions/cache@v2
80+
with:
81+
path: .build
82+
key: ${{ runner.os }}-${{matrix.linux}}-spm-${{ hashFiles('Package.resolved') }}
83+
- name: Check Swift version
84+
run: swift --version
85+
- name: Release Build
86+
if: matrix.configuration == 'release'
87+
run: swift build -c release
88+
- name: Debug Build & Test
89+
if: matrix.configuration == 'debug'
90+
run: swift test -c debug

.github/workflows/docs.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish Documentation
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy_docs:
9+
runs-on: macos-11
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: maxim-lobanov/setup-xcode@v1.2.3
13+
with:
14+
xcode-version: latest
15+
- uses: actions/cache@v2
16+
with:
17+
path: .build
18+
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
19+
- name: Check Xcode version
20+
run: xcodebuild -version
21+
- name: Check Swift version
22+
run: swift --version
23+
- name: Publish Jazzy Docs
24+
uses: steven0351/publish-jazzy-docs@v1
25+
with:
26+
personal_access_token: ${{ secrets.ACCESS_TOKEN }}
27+
config: .jazzy.yml
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- release
7+
8+
jobs:
9+
update_release_draft:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: release-drafter/release-drafter@v5
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Create Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*.*.*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: GH Release
13+
uses: softprops/action-gh-release@v0.1.5
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

.github/workflows/spm-update.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Swift Package Update
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * 1'
6+
workflow_dispatch:
7+
8+
jobs:
9+
createPR:
10+
name: Create Pull Request
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Check Swift version
15+
run: swift --version
16+
- name: Update Swift Packages
17+
run: swift package update
18+
- uses: peter-evans/create-pull-request@v3
19+
with:
20+
token: ${{ secrets.ACCESS_TOKEN }}
21+
commit-message: Update dependencies
22+
title: Update dependencies
23+
body: Update the Swift Package dependencies.
24+
delete-branch: true
25+
base: develop
26+
branch: bots/update-dependencies
27+
assignees: PSchmiedmayer
28+
committer: PSchmiedmayer <PSchmiedmayer@users.noreply.github.com>
29+
author: PSchmiedmayer <PSchmiedmayer@users.noreply.github.com>

.github/workflows/swiftlint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: SwiftLint
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/swiftlint.yml'
7+
- '.swiftlint.yml'
8+
- '**/*.swift'
9+
10+
jobs:
11+
swiftlint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: GitHub Action for SwiftLint
16+
uses: norio-nomura/action-swiftlint@3.1.0
17+
with:
18+
args: --strict
19+
env:
20+
DIFF_BASE: ${{ github.base_ref }}
21+

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Apodini .gitignore File
2+
3+
# Swift Package Manager
4+
Package.resolved
5+
*.xcodeproj
6+
.swiftpm
7+
.build/
8+
9+
# Xcode User settings
10+
xcuserdata/
11+
12+
# Other files
13+
.DS_Store
14+
15+
# Fastlane
16+
fastlane/report.xml
17+
fastlane/Preview.html
18+
fastlane/screenshots/**/*.png
19+
fastlane/test_output

.jazzy.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module: ApodiniTemplate
2+
author: Paul Schmiedmayer
3+
theme: fullwidth
4+
output: ./docs
5+
documentation: ./*.md
6+
author_url: https://github.com/Apodini
7+
github_url: https://github.com/Apodini/ApodiniTemplate

0 commit comments

Comments
 (0)