Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/CI-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI - Pull Request
on:
pull_request:
branches:
- 'main'
workflow_dispatch:
jobs:
swiftlint:
name: SwiftLint
uses: ./.github/workflows/swiftlint.yml
secrets: inherit
test:
name: Testing CodeEditLanguages
needs: swiftlint
uses: ./.github/workflows/tests.yml
secrets: inherit
21 changes: 21 additions & 0 deletions .github/workflows/CI-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI - Push to main
on:
push:
branches:
- 'main'
workflow_dispatch:
jobs:
swiftlint:
name: SwiftLint
uses: ./.github/workflows/swiftlint.yml
secrets: inherit
test:
name: Testing CodeEditLanguages
needs: swiftlint
uses: ./.github/workflows/tests.yml
secrets: inherit
build_documentation:
name: Build Documentation
needs: [swiftlint, test]
uses: ./.github/workflows/build-documentation.yml
secrets: inherit
6 changes: 1 addition & 5 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: build-documentation
on:
push:
branches:
- 'main'
paths:
- 'Sources/**'
workflow_dispatch:
workflow_call:

jobs:
build-docc:
Expand Down
19 changes: 2 additions & 17 deletions .github/workflows/swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
name: SwiftLint
on:
push:
branches:
- 'main'
paths:
- '.github/workflows/swiftlint.yml'
- '.swiftlint.yml'
- '**/*.swift'
pull_request:
branches:
- 'main'
paths:
- '.github/workflows/swiftlint.yml'
- '.swiftlint.yml'
- '**/*.swift'
workflow_dispatch:
workflow_call:
jobs:
SwiftLint:
runs-on: [self-hosted, macOS]
steps:
- uses: actions/checkout@v1
- name: GitHub Action for SwiftLint with --strict
run: swiftlint --strict
# uses: norio-nomura/action-swiftlint@3.2.1
# with:
# args: --strict
11 changes: 2 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
name: tests
on:
push:
branches:
- 'main'
paths:
- 'Sources/**'
- 'Tests/**'
pull_request:
branches:
- 'main'
workflow_dispatch:
workflow_call:
jobs:
code-edit-text-view-tests:
name: Testing CodeEditLanguages
Expand Down