Skip to content

Commit 9e967fc

Browse files
authored
Merge pull request #2 from Infomaniak/addCI
ci: Minimalistic CI building and testing.
2 parents b4d872b + 6f80608 commit 9e967fc

File tree

7 files changed

+152
-0
lines changed

7 files changed

+152
-0
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @Infomaniak/ios

.github/ISSUE_TEMPLATE/bug_report.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
<!--Note: English is the preferred language, but if you prefer you can write in French.
11+
L'anglais est la langue préférée, mais si vous préférez, vous pouvez écrire en français.-->
12+
13+
**Description**
14+
A clear and concise description of what the bug is.
15+
16+
**Steps to reproduce**
17+
Steps to reproduce the behavior:
18+
1. Go to '...'
19+
2. Click on '....'
20+
3. Scroll down to '....'
21+
4. See error
22+
23+
**Expected behavior**
24+
A clear and concise description of what you expected to happen.
25+
26+
**Screenshots**
27+
If applicable, add screenshots to help explain your problem.
28+
29+
**Smartphone (please complete the following information):**
30+
- Device: [e.g. iPhone 12]
31+
- iOS version: [e.g. iOS 14.0]
32+
- App version: [e.g. 4.0.1]
33+
34+
**Additional context**
35+
Add any other context about the problem here.
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
<!--Note: English is the preferred language, but if you prefer you can write in French.
11+
L'anglais est la langue préférée, mais si vous préférez, vous pouvez écrire en français.-->
12+
13+
**Is your feature request related to a problem? Please describe.**
14+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
15+
16+
**Describe the solution you'd like**
17+
A clear and concise description of what you want to happen.
18+
19+
**Describe alternatives you've considered**
20+
A clear and concise description of any alternative solutions or features you've considered.
21+
22+
**Additional context**
23+
Add any other context or screenshots about the feature request here.
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Auto Author Assign
2+
3+
on:
4+
pull_request_target:
5+
types: [ opened, reopened ]
6+
7+
permissions:
8+
pull-requests: write
9+
10+
jobs:
11+
assign-author:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: toshimaru/[email protected]

.github/workflows/ci.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI workflow
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
build_and_test_macOS:
9+
name: Build and Test project on macOS
10+
runs-on: [ self-hosted, macOS ]
11+
12+
steps:
13+
- name: Cancel Previous Runs
14+
uses: styfle/[email protected]
15+
with:
16+
access_token: ${{ github.token }}
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
- name: Build
20+
run: swift build
21+
- name: Test
22+
run: swift test
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Dependent Issues
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- edited
8+
- closed
9+
- reopened
10+
pull_request_target:
11+
types:
12+
- opened
13+
- edited
14+
- closed
15+
- reopened
16+
# Makes sure we always add status check for PRs. Useful only if
17+
# this action is required to pass before merging. Otherwise, it
18+
# can be removed.
19+
- synchronize
20+
21+
jobs:
22+
check:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: z0al/dependent-issues@v1
26+
env:
27+
# (Required) The token to use to make API calls to GitHub.
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/semantic-commit.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: 'PR and Commit Message Check'
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- edited
7+
- reopened
8+
- synchronize
9+
pull_request_target:
10+
types:
11+
- opened
12+
- edited
13+
- reopened
14+
- synchronize
15+
16+
jobs:
17+
check-commit-message:
18+
name: Check Commit Message
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Check Commit Message
22+
uses: gsactions/commit-message-checker@v2
23+
with:
24+
pattern: '^(feat|fix|chore|docs|style|refactor|perf|ci|test)(\(.+\))?: [A-Z0-9].+'
25+
error: 'Commit messages and PR title should match conventional commit convention and start with a majuscule.'
26+
excludeDescription: 'true'
27+
excludeTitle: 'false'
28+
checkAllCommitMessages: 'true'
29+
accessToken: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)