Skip to content

Commit c92509c

Browse files
committed
use proper pipelines for CI
1 parent 5bd0a7c commit c92509c

File tree

6 files changed

+42
-17
lines changed

6 files changed

+42
-17
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CI - Push Main
2+
on:
3+
pull_request:
4+
branches:
5+
- 'main'
6+
workflow_dispatch:
7+
jobs:
8+
swiftlint:
9+
name: SwiftLint
10+
uses: ./.github/workflows/lint.yml
11+
secrets: inherit
12+
test:
13+
name: Testing CodeEdit
14+
needs: swiftlint
15+
uses: ./.github/workflows/tests.yml
16+
secrets: inherit

.github/workflows/CI-push-main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI - Push Main
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
jobs:
8+
swiftlint:
9+
name: SwiftLint
10+
uses: ./.github/workflows/lint.yml
11+
secrets: inherit
12+
test:
13+
name: Testing CodeEdit
14+
needs: swiftlint
15+
uses: ./.github/workflows/tests.yml
16+
secrets: inherit
17+
deploy:
18+
name: Deploying CodeEdit [Prerelease]
19+
needs: [swiftlint, test]
20+
uses: ./.github/workflows/pre-release.yml
21+
secrets: inherit

.github/workflows/lint.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
name: SwiftLint
22

33
on:
4-
pull_request:
5-
paths:
6-
- '.github/workflows/swiftlint.yml'
7-
- '.swiftlint.yml'
8-
- '**/*.swift'
4+
workflow_dispatch:
5+
workflow_call:
96

107
jobs:
118
SwiftLint:

.github/workflows/pre-release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ name: Build and Publish Pre-release
22

33
on:
44
workflow_dispatch:
5-
push:
6-
branches:
7-
- 'main'
5+
workflow_call:
86

97
jobs:
108
pre-release:

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ name: Release Drafter
33
on:
44
# Allow running it manually in case we forget to label a PR before merging
55
workflow_dispatch:
6-
push:
7-
branches:
8-
- main
6+
workflow_call:
97

108
jobs:
119
update_release_draft:

.github/workflows/tests.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
name: Tests
22
on:
33
workflow_dispatch:
4-
push:
5-
branches:
6-
- 'main'
7-
pull_request:
8-
branches:
9-
- 'main'
4+
workflow_call:
105
jobs:
116
test:
127
name: Testing CodeEdit

0 commit comments

Comments
 (0)