Skip to content

Commit 179f397

Browse files
authored
[chore]: CI - use pipelines for ci (CodeEditApp#117)
2 parents b014c9f + 216db2b commit 179f397

File tree

5 files changed

+46
-35
lines changed

5 files changed

+46
-35
lines changed

.github/workflows/CI-pull-request.yml

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

.github/workflows/build-documentation.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
name: build-documentation
2-
on:
3-
push:
4-
branches:
5-
- 'main'
6-
paths:
7-
- 'Sources/**'
2+
on:
83
workflow_dispatch:
4+
workflow_call:
95
jobs:
106
build-docc:
117
runs-on: [self-hosted, macOS]
128
steps:
139
- name: Checkout repository
14-
uses: actions/checkout@v1
10+
uses: actions/checkout@v3
1511
- name: Build Documentation
1612
run: exec ./.github/scripts/build-docc.sh
1713
- name: Init new repo in dist folder and commit generated files

.github/workflows/swiftlint.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,11 @@
11
name: SwiftLint
22
on:
3-
push:
4-
branches:
5-
- 'main'
6-
paths:
7-
- '.github/workflows/swiftlint.yml'
8-
- '.swiftlint.yml'
9-
- '**/*.swift'
10-
pull_request:
11-
branches:
12-
- 'main'
13-
paths:
14-
- '.github/workflows/swiftlint.yml'
15-
- '.swiftlint.yml'
16-
- '**/*.swift'
3+
workflow_dispatch:
4+
workflow_call:
175
jobs:
186
SwiftLint:
197
runs-on: [self-hosted, macOS]
208
steps:
21-
- uses: actions/checkout@v1
9+
- uses: actions/checkout@v3
2210
- name: GitHub Action for SwiftLint with --strict
2311
run: swiftlint --strict
24-
# uses: norio-nomura/[email protected]
25-
# with:
26-
# args: --strict

.github/workflows/tests.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
name: tests
22
on:
3-
push:
4-
branches:
5-
- 'main'
6-
paths:
7-
- 'Sources/**'
8-
- 'Tests/**'
9-
pull_request:
10-
branches:
11-
- 'main'
3+
workflow_dispatch:
4+
workflow_call:
125
jobs:
136
code-edit-text-view-tests:
147
name: Testing CodeEditTextView
158
runs-on: [self-hosted, macOS]
169
steps:
1710
- name: Checkout repository
18-
uses: actions/checkout@v1
11+
uses: actions/checkout@v3
1912
- name: Testing Package
2013
run: exec ./.github/scripts/tests.sh arm

0 commit comments

Comments
 (0)