-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
62 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,16 +16,6 @@ on: | |
- "Tests/**" | ||
|
||
jobs: | ||
SwiftLint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: GitHub Action for SwiftLint | ||
uses: sinoru/actions-swiftlint@v6 | ||
with: | ||
args: --strict | ||
env: | ||
DIFF_BASE: ${{ github.base_ref }} | ||
macOS: | ||
name: ${{ matrix.name }} | ||
runs-on: ${{ matrix.runsOn }} | ||
|
@@ -57,16 +47,12 @@ jobs: | |
-destination "platform=macOS" \ | ||
-enableCodeCoverage YES \ | ||
-resultBundlePath "test_output/${{ matrix.name }}.xcresult" || exit 1 | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
xcode: true | ||
xcode_archive_path: test_output/${{ matrix.name }}.xcresult | ||
- uses: actions/upload-artifact@v4 | ||
- name: Upload test coverage reports to Codecov | ||
uses: ./.github/actions/upload_test_coverage_report | ||
with: | ||
name: ${{ matrix.name }} | ||
path: test_output | ||
scheme_name: Flare | ||
filename: ${{ matrix.name }} | ||
codecov_token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
iOS: | ||
name: ${{ matrix.name }} | ||
|
@@ -100,10 +86,12 @@ jobs: | |
-testPlan AllTests \ | ||
-enableCodeCoverage YES \ | ||
-resultBundlePath "test_output/${{ matrix.name }}.xcresult" || exit 1 | ||
- uses: actions/upload-artifact@v4 | ||
- name: Upload test coverage reports to Codecov | ||
uses: ./.github/actions/upload_test_coverage_report | ||
with: | ||
name: ${{ matrix.name }} | ||
path: test_output | ||
scheme_name: Flare | ||
filename: ${{ matrix.name }} | ||
codecov_token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
tvOS: | ||
name: ${{ matrix.name }} | ||
|
@@ -138,7 +126,7 @@ jobs: | |
-enableCodeCoverage YES \ | ||
-resultBundlePath "test_output/${{ matrix.name }}.xcresult" || exit 1 | ||
- name: Upload test coverage reports to Codecov | ||
uses: ./.github/actions/upload_test_coverage_report.yml | ||
uses: ./.github/actions/upload_test_coverage_report | ||
with: | ||
scheme_name: Flare | ||
filename: ${{ matrix.name }} | ||
|
@@ -180,16 +168,12 @@ jobs: | |
-testPlan UnitTests \ | ||
-enableCodeCoverage YES \ | ||
-resultBundlePath "test_output/${{ matrix.name }}.xcresult" || exit 1 | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
xcode: true | ||
xcode_archive_path: test_output/${{ matrix.name }}.xcresult | ||
- uses: actions/upload-artifact@v4 | ||
- name: Upload test coverage reports to Codecov | ||
uses: ./.github/actions/upload_test_coverage_report | ||
with: | ||
name: ${{ matrix.name }} | ||
path: test_output | ||
scheme_name: Flare | ||
filename: ${{ matrix.name }} | ||
codecov_token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
spm: | ||
name: ${{ matrix.name }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,16 +16,6 @@ on: | |
- "Tests/FlareUITests/**" | ||
|
||
jobs: | ||
SwiftLint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: GitHub Action for SwiftLint | ||
uses: sinoru/actions-swiftlint@v6 | ||
with: | ||
args: --strict | ||
env: | ||
DIFF_BASE: ${{ github.base_ref }} | ||
macOS: | ||
name: ${{ matrix.name }} | ||
runs-on: ${{ matrix.runsOn }} | ||
|
@@ -57,16 +47,12 @@ jobs: | |
-destination "platform=macOS" \ | ||
-enableCodeCoverage YES \ | ||
-resultBundlePath "test_output/${{ matrix.name }}.xcresult" || exit 1 | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
- name: Upload test coverage reports to Codecov | ||
uses: ./.github/actions/upload_test_coverage_report | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
xcode: true | ||
xcode_archive_path: test_output/${{ matrix.name }}.xcresult | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.name }} | ||
path: test_output | ||
scheme_name: FlareUI | ||
filename: ${{ matrix.name }} | ||
codecov_token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
iOS: | ||
name: ${{ matrix.name }} | ||
|
@@ -100,10 +86,12 @@ jobs: | |
-testPlan FlareUI \ | ||
-enableCodeCoverage YES \ | ||
-resultBundlePath "test_output/${{ matrix.name }}.xcresult" || exit 1 | ||
- uses: actions/upload-artifact@v4 | ||
- name: Upload test coverage reports to Codecov | ||
uses: ./.github/actions/upload_test_coverage_report | ||
with: | ||
name: ${{ matrix.name }} | ||
path: test_output | ||
scheme_name: FlareUI | ||
filename: ${{ matrix.name }} | ||
codecov_token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
tvOS: | ||
name: ${{ matrix.name }} | ||
|
@@ -137,16 +125,12 @@ jobs: | |
-testPlan FlareUI \ | ||
-enableCodeCoverage YES \ | ||
-resultBundlePath "test_output/${{ matrix.name }}.xcresult" || exit 1 | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
xcode: true | ||
xcode_archive_path: test_output/${{ matrix.name }}.xcresult | ||
- uses: actions/upload-artifact@v4 | ||
- name: Upload test coverage reports to Codecov | ||
uses: ./.github/actions/upload_test_coverage_report | ||
with: | ||
name: ${{ matrix.name }} | ||
path: test_output | ||
scheme_name: FlareUI | ||
filename: ${{ matrix.name }} | ||
codecov_token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
watchOS: | ||
name: ${{ matrix.name }} | ||
|
@@ -184,16 +168,12 @@ jobs: | |
-testPlan FlareUI \ | ||
-enableCodeCoverage YES \ | ||
-resultBundlePath "test_output/${{ matrix.name }}.xcresult" || exit 1 | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
- name: Upload test coverage reports to Codecov | ||
uses: ./.github/actions/upload_test_coverage_report | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
xcode: true | ||
xcode_archive_path: test_output/${{ matrix.name }}.xcresult | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.name }} | ||
path: test_output | ||
scheme_name: FlareUI | ||
filename: ${{ matrix.name }} | ||
codecov_token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
spm: | ||
name: ${{ matrix.name }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: "swiftlint" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
paths: | ||
- '.swiftlint.yml' | ||
- ".github/workflows/**" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "Package.swift" | ||
- "Source/**" | ||
- "Tests/**" | ||
|
||
jobs: | ||
SwiftLint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: GitHub Action for SwiftLint | ||
uses: norio-nomura/[email protected] | ||
with: | ||
args: lint --config ./.swiftlint.yml --strict |