Skip to content

Commit

Permalink
[#503] Update ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thiennguyen0196 committed Sep 14, 2023
1 parent 1beb482 commit be36a55
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/run_detekt_and_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,24 @@ jobs:
# template-xml

- name: Run Detekt on template-xml
working-directory: ./template-xml
working-directory: ./deprecated/template-xml
run: ./gradlew detekt

- name: Archive Detekt reports on template-xml
uses: actions/upload-artifact@v2
with:
name: DetektReportsTemplateXML
path: template-xml/build/reports/detekt/
path: deprecated/template-xml/build/reports/detekt/

- name: Run unit tests with Kover on template-xml
working-directory: ./template-xml
working-directory: ./deprecated/template-xml
run: ./gradlew koverHtmlReport

- name: Archive code coverage reports on template-xml
uses: actions/upload-artifact@v2
with:
name: CodeCoverageReportsTemplateXML
path: template-xml/app/build/reports/kover/
path: deprecated/template-xml/app/build/reports/kover/

# template-compose

Expand All @@ -75,24 +75,24 @@ jobs:
# sample-xml

- name: Run Detekt on sample-xml
working-directory: ./sample-xml
working-directory: ./deprecated/sample-xml
run: ./gradlew detekt

- name: Archive Detekt reports on sample-xml
uses: actions/upload-artifact@v2
with:
name: DetektReportsTemplateXML
path: sample-xml/build/reports/detekt/
path: deprecated/sample-xml/build/reports/detekt/

- name: Run unit tests with Kover on sample-xml
working-directory: ./sample-xml
working-directory: ./deprecated/sample-xml
run: ./gradlew koverHtmlReport

- name: Archive code coverage reports on sample-xml
uses: actions/upload-artifact@v2
with:
name: CodeCoverageReportsTemplateXML
path: sample-xml/app/build/reports/kover/
path: deprecated/sample-xml/app/build/reports/kover/

# sample-compose

Expand Down
6 changes: 3 additions & 3 deletions codemagic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ definitions:
script: ./gradlew detekt
- &detekt_on_template_xml
name: Run detekt on template-xml
working_directory: ./template-xml
working_directory: ./deprecated/template-xml
script: ./gradlew detekt
- &unit_test_on_template_compose
name: Run unit tests on template-compose
working_directory: ./template-compose
script: ./gradlew koverHtmlReport
- &unit_test_on_template_xml
name: Run unit tests on template-xml
working_directory: ./template-xml
working_directory: ./deprecated/template-xml
script: ./gradlew koverHtmlReport
artifacts:
- &artifacts_template_compose template-compose/app/build/reports/kover/
- &artifacts_template_xml template-xml/app/build/reports/kover/
- &artifacts_template_xml deprecated/template-xml/app/build/reports/kover/
- &artifacts_staging_apk template-compose/app/build/outputs/apk/staging/debug/app-staging-debug.apk
- &artifacts_production_apk template-compose/app/build/outputs/apk/production/debug/app-production-debug.apk
workflows:
Expand Down

0 comments on commit be36a55

Please sign in to comment.