Skip to content

Commit d33f35f

Browse files
committed
Add github workflows & templates
1 parent 151dfcd commit d33f35f

13 files changed

+281
-0
lines changed
47.1 KB
Loading
70 KB
Loading
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: 🐞 Bug report
2+
description: Something is not working as expected.
3+
title: 🐞 <bug title>
4+
labels: bug
5+
6+
body:
7+
- type: textarea
8+
attributes:
9+
label: Description
10+
placeholder: >-
11+
A clear and concise description of what the bug is...
12+
validations:
13+
required: true
14+
15+
- type: textarea
16+
attributes:
17+
label: To Reproduce
18+
description: >-
19+
Steps to reliably reproduce the behavior.
20+
placeholder: |
21+
1. Go to '...'
22+
2. Click on '....'
23+
3. Scroll down to '....'
24+
4. See error
25+
validations:
26+
required: true
27+
28+
- type: textarea
29+
attributes:
30+
label: Expected Behavior
31+
placeholder: >-
32+
A clear and concise description of what you expected to happen...
33+
validations:
34+
required: true
35+
36+
- type: textarea
37+
attributes:
38+
label: Version Information
39+
description: >-
40+
click on the version number on the welcome screen
41+
value: |
42+
CodeEditTextView: [e.g. 0.x.y]
43+
macOS: [e.g. 13.2.1]
44+
Xcode: [e.g. 14.2]
45+
46+
- type: textarea
47+
attributes:
48+
label: Additional Context
49+
placeholder: >-
50+
Any other context or considerations about the bug...
51+
52+
- type: textarea
53+
attributes:
54+
label: Screenshots
55+
placeholder: >-
56+
If applicable, please provide relevant screenshots or screen recordings...
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: ✨ Feature request
2+
description: Suggest an idea for this project
3+
title: ✨ <feature title>
4+
labels: enhancement
5+
6+
body:
7+
- type: textarea
8+
attributes:
9+
label: Description
10+
placeholder: >-
11+
A clear and concise description of what you would like to happen...
12+
validations:
13+
required: true
14+
15+
- type: textarea
16+
attributes:
17+
label: Alternatives Considered
18+
placeholder: >-
19+
Any alternative solutions or features you've considered...
20+
21+
- type: textarea
22+
attributes:
23+
label: Additional Context
24+
placeholder: >-
25+
Any other context or considerations about the feature request...
26+
27+
- type: textarea
28+
attributes:
29+
label: Screenshots
30+
placeholder: >-
31+
If applicable, please provide relevant screenshots or screen recordings...

.github/pull_request_template.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!--- IMPORTANT: If this PR addresses multiple unrelated issues, it will be closed until separated. -->
2+
3+
### Description
4+
5+
<!--- REQUIRED: Describe what changed in detail -->
6+
7+
### Related Issues
8+
9+
<!--- REQUIRED: Tag all related issues (e.g. * #123) -->
10+
<!--- If this PR resolves the issue please specify (e.g. * closes #123) -->
11+
<!--- If this PR addresses multiple issues, these issues must be related to one other -->
12+
13+
* #ISSUE_NUMBER
14+
15+
### Checklist
16+
17+
<!--- Add things that are not yet implemented above -->
18+
19+
- [ ] I read and understood the [contributing guide](https://github.com/CodeEditApp/CodeEdit/blob/main/CONTRIBUTING.md) as well as the [code of conduct](https://github.com/CodeEditApp/CodeEdit/blob/main/CODE_OF_CONDUCT.md)
20+
- [ ] The issues this PR addresses are related to each other
21+
- [ ] My changes generate no new warnings
22+
- [ ] My code builds and runs on my machine
23+
- [ ] My changes are all related to the related issue above
24+
- [ ] I documented my code
25+
26+
### Screenshots
27+
28+
<!--- REQUIRED: if issue is UI related -->
29+
30+
<!--- IMPORTANT: Fill out all required fields. Otherwise we might close this PR temporarily -->

.github/scripts/build-docc.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
export LC_CTYPE=en_US.UTF-8
4+
5+
set -o pipefail && xcodebuild clean docbuild -scheme CodeEditTextView \
6+
-destination generic/platform=macos \
7+
-skipPackagePluginValidation \
8+
OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path CodeEditTextView --output-path ./docs" | xcpretty

.github/scripts/tests.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
ARCH=""
4+
5+
if [ $1 = "arm" ]
6+
then
7+
ARCH="arm64"
8+
else
9+
ARCH="x86_64"
10+
fi
11+
12+
echo "Building with arch: ${ARCH}"
13+
14+
export LC_CTYPE=en_US.UTF-8
15+
16+
set -o pipefail && arch -"${ARCH}" xcodebuild \
17+
-scheme CodeEditTextView \
18+
-derivedDataPath ".build" \
19+
-destination "platform=macos,arch=${ARCH}" \
20+
-skipPackagePluginValidation \
21+
clean test | xcpretty
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CI - Pull Request
2+
on:
3+
pull_request:
4+
branches:
5+
- 'main'
6+
workflow_dispatch:
7+
jobs:
8+
swiftlint:
9+
name: SwiftLint
10+
uses: ./.github/workflows/swiftlint.yml
11+
secrets: inherit
12+
test:
13+
name: Testing CodeEditTextView
14+
needs: swiftlint
15+
uses: ./.github/workflows/tests.yml
16+
secrets: inherit

.github/workflows/CI-push.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI - Push to main
2+
on:
3+
push:
4+
branches:
5+
- 'main'
6+
workflow_dispatch:
7+
jobs:
8+
swiftlint:
9+
name: SwiftLint
10+
uses: ./.github/workflows/swiftlint.yml
11+
secrets: inherit
12+
test:
13+
name: Testing CodeEditTextView
14+
needs: swiftlint
15+
uses: ./.github/workflows/tests.yml
16+
secrets: inherit
17+
build_documentation:
18+
name: Build Documentation
19+
needs: [swiftlint, test]
20+
uses: ./.github/workflows/build-documentation.yml
21+
secrets: inherit
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Add new issues to project
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
8+
jobs:
9+
add-to-project:
10+
name: Add new issues labeled with enhancement or bug to project
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/add-to-project@v0.4.0
14+
with:
15+
# You can target a repository in a different organization
16+
# to the issue
17+
project-url: https://github.com/orgs/CodeEditApp/projects/3
18+
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
19+
labeled: enhancement, bug
20+
label-operator: OR

0 commit comments

Comments
 (0)