generated from Apodini/Template-Repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to Apodini 0.4.0 and make REUSE compliance (#1)
* Update to Apodini 0.4.0 and make REUSE compliance * Execute no tests on macOS
- Loading branch information
1 parent
69cc488
commit fca8278
Showing
24 changed files
with
318 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
<!-- | ||
This source file is part of the Apodini Leaf open source project | ||
SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]> | ||
SPDX-License-Identifier: MIT | ||
--> | ||
|
||
# *Name of the PR* | ||
|
||
## :recycle: Current situation | ||
## :recycle: Current situation & Problem | ||
*Describe the current situation (if possible with and exemplary (or real) code snippet and/or where this is used)* | ||
|
||
## :bulb: Proposed solution | ||
*Describe the solution (if possible with and exemplary (or real) code snippet)* | ||
|
||
### Problem that is solved | ||
*Provide a description and link issues that are solved* | ||
*Describe the solution and how this affects the project and internal structure* | ||
|
||
### Implications | ||
*Describe the implications, e.g. refactoring* | ||
## :gear: Release Notes | ||
*Add a short summary of the feature as well as possible migration guides if this is a breaking change so this section can be added to the release notes.* | ||
*Include code snippets that provide examples of the feature implemented if it appends or changes the public interface.* | ||
|
||
## :heavy_plus_sign: Additional Information | ||
*Provide some additional information if possible* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,30 @@ | ||
# | ||
# This source file is part of the Apodini Leaf open source project | ||
# | ||
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
branches: [release] | ||
name-template: '$NEXT_PATCH_VERSION' | ||
tag-template: '$NEXT_PATCH_VERSION' | ||
categories: | ||
- title: '🚀 Features' | ||
- title: 'Semantic Version Major' | ||
labels: | ||
- 'needs version bump' | ||
- title: 'Semantic Version Minor' | ||
labels: | ||
- 'feature' | ||
- 'enhancement' | ||
- title: '🐛 Bug Fixes' | ||
- title: 'Other Changes' | ||
labels: | ||
- 'fix' | ||
- 'bugfix' | ||
- 'bug' | ||
- title: '🧰 Maintenance' | ||
label: 'chore' | ||
- 'documentation' | ||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||
template: | | ||
## Changes | ||
$CHANGES | ||
$CHANGES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,35 @@ | ||
# | ||
# This source file is part of the Apodini Leaf open source project | ||
# | ||
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
name: Build and Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- release | ||
pull_request: | ||
branches: | ||
- develop | ||
- release | ||
workflow_dispatch: | ||
|
||
jobs: | ||
latest-beta-swift-version: | ||
name: Latest (Beta) Swift Version | ||
runs-on: macos-11 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: maxim-lobanov/[email protected] | ||
with: | ||
xcode-version: latest | ||
- uses: actions/cache@v2 | ||
with: | ||
path: .build | ||
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | ||
- name: Check Xcode version | ||
run: xcodebuild -version | ||
- name: Check Swift version | ||
run: swift --version | ||
- name: Debug Build & Test | ||
run: swift test | ||
macos: | ||
name: macOS ${{ matrix.configuration }} | ||
runs-on: macos-11 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
configuration: [debug, release, release_testing] | ||
configuration: [debug, release] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: maxim-lobanov/[email protected] | ||
with: | ||
xcode-version: latest-stable | ||
xcode-version: latest | ||
- uses: actions/cache@v2 | ||
with: | ||
path: .build | ||
|
@@ -53,27 +41,25 @@ jobs: | |
- name: Release Build | ||
if: matrix.configuration == 'release' | ||
run: swift build -c release | ||
- name: Release Build & Test | ||
if: matrix.configuration == 'release_testing' | ||
run: swift test -c release -Xswiftc -enable-testing -Xswiftc -DRELEASE_TESTING | ||
- name: Debug Build & Test | ||
- name: Debug Build | ||
if: matrix.configuration == 'debug' | ||
run: swift test -c debug --enable-code-coverage -Xswiftc -DCOVERAGE | ||
- name: Convert coverage report | ||
run: swift build -c debug | ||
- name: Test Generating Docs | ||
if: matrix.configuration == 'debug' | ||
run: xcrun llvm-cov export -format="lcov" .build/debug/ApodiniLeafPackageTests.xctest/Contents/MacOS/ApodiniLeafPackageTests -instr-profile .build/debug/codecov/default.profdata > coverage.lcov | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
run: | | ||
xcodebuild docbuild -scheme ApodiniLeaf -destination platform=macOS,arch=x86_64 -derivedDataPath ./.xcodebuild | ||
cp -r $(find ./.xcodebuild -type d -name 'ApodiniLeaf.doccarchive') ./ApodiniLeaf.doccarchive | ||
echo "The DocC archive can be found at ./ApodiniLeaf.doccarchive" | ||
linux: | ||
name: Linux ${{ matrix.linux }} ${{ matrix.configuration }} | ||
container: | ||
image: swift:${{ matrix.linux }} | ||
image: swiftlang/swift:nightly-5.5-${{ matrix.linux }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
linux: [bionic, xenial, focal, amazonlinux2, centos8] | ||
configuration: [debug, release] | ||
linux: [bionic, focal, amazonlinux2, centos8] | ||
configuration: [debug, release, release_testing] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v2 | ||
|
@@ -85,6 +71,9 @@ jobs: | |
- name: Release Build | ||
if: matrix.configuration == 'release' | ||
run: swift build -c release | ||
- name: Release Build & Test | ||
if: matrix.configuration == 'release_testing' | ||
run: swift test -c release -Xswiftc -enable-testing | ||
- name: Debug Build & Test | ||
if: matrix.configuration == 'debug' | ||
run: swift test -c debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
name: Publish Documentation | ||
# | ||
# This source file is part of the Apodini Leaf open source project | ||
# | ||
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
name: Generate Docs | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy_docs: | ||
generatedocs: | ||
name: Generate Docs | ||
runs-on: macos-11 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
# | ||
# This source file is part of the Apodini Leaf open source project | ||
# | ||
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
name: Release Drafter | ||
|
||
on: | ||
push: | ||
branches: | ||
- release | ||
- develop | ||
|
||
jobs: | ||
update_release_draft: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
# | ||
# This source file is part of the Apodini Leaf open source project | ||
# | ||
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
name: Create Release | ||
|
||
on: | ||
|
@@ -9,7 +17,7 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: GH Release | ||
- name: Create GitHub Release | ||
uses: softprops/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# This source file is part of the Apodini Leaf open source project | ||
# | ||
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
name: REUSE Compliance Check | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
reuse: | ||
name: REUSE Compliance Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: REUSE Compliance Check | ||
uses: fsfe/reuse-action@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
# | ||
# This source file is part of the Apodini Leaf open source project | ||
# | ||
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
name: Swift Package Update | ||
|
||
on: | ||
|
@@ -8,6 +16,8 @@ on: | |
jobs: | ||
createPR: | ||
name: Create Pull Request | ||
container: | ||
image: swiftlang/swift:nightly-5.5-focal | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -24,6 +34,7 @@ jobs: | |
delete-branch: true | ||
base: develop | ||
branch: bots/update-dependencies | ||
assignees: PSchmiedmayer | ||
committer: PSchmiedmayer <[email protected]> | ||
author: PSchmiedmayer <[email protected]> | ||
assignees: ApodiniBot | ||
committer: ApodiniBot <[email protected]> | ||
author: ApodiniBot <[email protected]> | ||
reviewers: PSchmiedmayer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
# | ||
# This source file is part of the Apodini Leaf open source project | ||
# | ||
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
name: SwiftLint | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/swiftlint.yml' | ||
- '.swiftlint.yml' | ||
- '**/*.swift' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
swiftlint: | ||
name: SwiftLint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: GitHub Action for SwiftLint | ||
uses: norio-nomura/action-swiftlint@3.1.0 | ||
uses: norio-nomura/action-swiftlint@3.2.1 | ||
with: | ||
args: --strict | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
# | ||
# This source file is part of the Apodini Leaf open source project | ||
# | ||
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
# Apodini .gitignore File | ||
|
||
# Swift Package Manager | ||
|
@@ -6,14 +14,18 @@ Package.resolved | |
.swiftpm | ||
.build/ | ||
|
||
# IDE related folders | ||
.idea | ||
|
||
# Xcode User settings | ||
xcuserdata/ | ||
|
||
# Other files | ||
.DS_Store | ||
.env | ||
|
||
# Fastlane | ||
fastlane/report.xml | ||
fastlane/Preview.html | ||
fastlane/screenshots/**/*.png | ||
fastlane/test_output | ||
# Documentation generation | ||
.xcodebuild/ | ||
docs/ | ||
docc2html/ | ||
*.doccarchive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
# | ||
# This source file is part of the Apodini Leaf open source project | ||
# | ||
# SPDX-FileCopyrightText: 2019-2021 Paul Schmiedmayer and the Apodini project authors (see CONTRIBUTORS.md) <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
module: ApodiniLeaf | ||
author: Paul Schmiedmayer & Jan Krusnik | ||
theme: fullwidth | ||
|
Oops, something went wrong.