File tree Expand file tree Collapse file tree 6 files changed +57
-22
lines changed Expand file tree Collapse file tree 6 files changed +57
-22
lines changed Original file line number Diff line number Diff line change
1
+ name : CI - Deploy
2
+ on :
3
+ push :
4
+ tags :
5
+ - ' *.*.*'
6
+ workflow_dispatch :
7
+ jobs :
8
+ swiftlint :
9
+ name : SwiftLint
10
+ uses : ./.github/workflows/swiftlint.yml
11
+ secrets : inherit
12
+ test :
13
+ name : Build CodeEdit CLI
14
+ needs : swiftlint
15
+ uses : ./.github/workflows/build.yml
16
+ secrets : inherit
17
+ deploy :
18
+ name : Deploy CodeEdit CLI
19
+ needs : [swiftlint, test]
20
+ uses : ./.github/workflows/deploy.yml
21
+ secrets : inherit
Original file line number Diff line number Diff line change
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 : Build CodeEdit CLI
14
+ needs : swiftlint
15
+ uses : ./.github/workflows/build.yml
16
+ secrets : inherit
Original file line number Diff line number Diff line change
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 : Build CodeEdit CLI
14
+ needs : swiftlint
15
+ uses : ./.github/workflows/build.yml
16
+ secrets : inherit
Original file line number Diff line number Diff line change @@ -2,20 +2,13 @@ name: Build
2
2
on :
3
3
workflow_dispatch :
4
4
workflow_call :
5
- push :
6
- branches :
7
- - main
8
- pull_request :
9
- branches :
10
- - main
11
-
12
5
jobs :
13
6
build-codeedit-cli :
14
7
name : Building CodeEdit CLI
15
8
runs-on : [self-hosted, macOS]
16
9
steps :
17
10
- name : Checkout Repository
18
- uses : actions/checkout@v2
11
+ uses : actions/checkout@v3
19
12
20
13
- name : Building
21
14
run : swift build -c release --arch arm64 --arch x86_64
Original file line number Diff line number Diff line change @@ -2,17 +2,14 @@ name: Deploy
2
2
on :
3
3
workflow_dispatch :
4
4
workflow_call :
5
- push :
6
- tags :
7
- - ' *.*.*'
8
5
9
6
jobs :
10
7
deploy-codeedit-cli :
11
8
name : Deploying CodeEdit CLI
12
9
runs-on : [self-hosted, macOS]
13
10
steps :
14
11
- name : Checkout Repository
15
- uses : actions/checkout@v2
12
+ uses : actions/checkout@v3
16
13
17
14
- name : Install codesign certificate
18
15
env :
Original file line number Diff line number Diff line change 1
1
name : SwiftLint
2
2
on :
3
+ workflow_dispatch :
3
4
workflow_call :
4
- push :
5
- branches :
6
- - ' main'
7
- pull_request :
8
- branches :
9
- - ' main'
10
5
jobs :
11
6
SwiftLint :
12
7
runs-on : [self-hosted, macOS]
13
8
steps :
14
- - uses : actions/checkout@v1
9
+ - uses : actions/checkout@v3
15
10
- name : GitHub Action for SwiftLint with --strict
16
11
run : swiftlint --strict
17
- # uses: norio-nomura/action-swiftlint@3.2.1
18
- # with:
19
- # args: --strict
You can’t perform that action at this time.
0 commit comments