|
3 | 3 | - push |
4 | 4 | - workflow_dispatch |
5 | 5 | jobs: |
6 | | - lint: |
7 | | - runs-on: ubuntu-latest |
8 | | - timeout-minutes: 10 |
9 | | - steps: |
10 | | - - uses: actions/checkout@v6 |
11 | | - - uses: actions/setup-java@v5 |
12 | | - with: |
13 | | - distribution: temurin |
14 | | - java-version: 21.0.10 |
15 | | - cache: 'gradle' |
16 | | - - name: Verify tests |
17 | | - run: | |
18 | | - sh scripts/verify-test-files.sh |
19 | | - - name: Ktfmt |
20 | | - run: ./gradlew ktfmtCheck |
21 | | - - name: Detekt - main |
22 | | - run: ./gradlew detektMain |
23 | | - - name: Detekt - tests |
24 | | - run: ./gradlew detektTest |
25 | | - |
26 | | - unit-test: |
27 | | - runs-on: ubuntu-latest |
28 | | - timeout-minutes: 15 |
29 | | - steps: |
30 | | - - uses: actions/checkout@v6 |
31 | | - - uses: actions/setup-java@v5 |
32 | | - with: |
33 | | - distribution: temurin |
34 | | - java-version: 21.0.10 |
35 | | - cache: 'gradle' |
36 | | - - name: Build & Unit Test |
37 | | - run: | |
38 | | - xvfb-run --auto-servernum ./gradlew koverHtmlReport |
39 | | - zip -rg unit-test-results.zip build/reports/tests/unitTest |
40 | | - zip -rq coverage-html.zip build/reports/kover/html |
41 | | - - name: Export test results |
42 | | - uses: actions/upload-artifact@v6 |
43 | | - with: |
44 | | - name: unit-test-results |
45 | | - path: unit-test-results.zip |
46 | | - - name: Export coverage stats |
47 | | - uses: actions/upload-artifact@v6 |
48 | | - with: |
49 | | - name: kover-report |
50 | | - path: coverage-html.zip |
51 | | - - name: Export snapshots |
52 | | - uses: actions/upload-artifact@v6 |
53 | | - if: failure() |
54 | | - with: |
55 | | - name: failed-snapshots |
56 | | - path: | |
57 | | - /home/runner/**/*.failed.png |
58 | | - /home/runner/**/*.comparison.png |
59 | | - - name: Kover XML |
60 | | - if: github.ref == 'refs/heads/main' |
61 | | - run: ./gradlew koverXmlReport |
62 | | - - name: Update coverage |
63 | | - id: update-coverage |
64 | | - if: github.ref == 'refs/heads/main' |
65 | | - run: | |
66 | | - python scripts/update-coverage.py |
67 | | - - name: Commit coverage stats |
68 | | - uses: EndBug/add-and-commit@v9 |
69 | | - if: github.ref == 'refs/heads/main' |
70 | | - with: |
71 | | - add: './README.md' |
72 | | - message: "Update coverage stats: ${{ steps.update-coverage.outputs.COVERAGE }}" |
73 | | - |
74 | | - integration-and-e2e: |
75 | | - runs-on: ubuntu-latest |
76 | | - timeout-minutes: 20 |
77 | | - steps: |
78 | | - - uses: actions/checkout@v6 |
79 | | - - uses: actions/setup-java@v5 |
80 | | - with: |
81 | | - distribution: temurin |
82 | | - java-version: 21.0.10 |
83 | | - cache: 'gradle' |
84 | | - - name: Integration & E2E |
85 | | - env: |
86 | | - AWS_SYNC: ${{ secrets.AWS_SYNC }} |
87 | | - AWS_LOGS: ${{ secrets.AWS_LOGS }} |
88 | | - run: xvfb-run --auto-servernum ./gradlew integrationAndE2E --info |
89 | | - - name: Export test results |
90 | | - uses: actions/upload-artifact@v6 |
91 | | - with: |
92 | | - name: integration-and-e2e-results |
93 | | - path: /home/runner/work/Dartzee/Dartzee/build/reports/tests/integrationAndE2E/**/*.html |
| 6 | +# lint: |
| 7 | +# runs-on: ubuntu-latest |
| 8 | +# timeout-minutes: 10 |
| 9 | +# steps: |
| 10 | +# - uses: actions/checkout@v6 |
| 11 | +# - uses: actions/setup-java@v5 |
| 12 | +# with: |
| 13 | +# distribution: temurin |
| 14 | +# java-version: 21.0.10 |
| 15 | +# cache: 'gradle' |
| 16 | +# - name: Verify tests |
| 17 | +# run: | |
| 18 | +# sh scripts/verify-test-files.sh |
| 19 | +# - name: Ktfmt |
| 20 | +# run: ./gradlew ktfmtCheck |
| 21 | +# - name: Detekt - main |
| 22 | +# run: ./gradlew detektMain |
| 23 | +# - name: Detekt - tests |
| 24 | +# run: ./gradlew detektTest |
| 25 | +# |
| 26 | +# unit-test: |
| 27 | +# runs-on: ubuntu-latest |
| 28 | +# timeout-minutes: 15 |
| 29 | +# steps: |
| 30 | +# - uses: actions/checkout@v6 |
| 31 | +# - uses: actions/setup-java@v5 |
| 32 | +# with: |
| 33 | +# distribution: temurin |
| 34 | +# java-version: 21.0.10 |
| 35 | +# cache: 'gradle' |
| 36 | +# - name: Build & Unit Test |
| 37 | +# run: | |
| 38 | +# xvfb-run --auto-servernum ./gradlew koverHtmlReport |
| 39 | +# zip -rg unit-test-results.zip build/reports/tests/unitTest |
| 40 | +# zip -rq coverage-html.zip build/reports/kover/html |
| 41 | +# - name: Export test results |
| 42 | +# uses: actions/upload-artifact@v6 |
| 43 | +# with: |
| 44 | +# name: unit-test-results |
| 45 | +# path: unit-test-results.zip |
| 46 | +# - name: Export coverage stats |
| 47 | +# uses: actions/upload-artifact@v6 |
| 48 | +# with: |
| 49 | +# name: kover-report |
| 50 | +# path: coverage-html.zip |
| 51 | +# - name: Export snapshots |
| 52 | +# uses: actions/upload-artifact@v6 |
| 53 | +# if: failure() |
| 54 | +# with: |
| 55 | +# name: failed-snapshots |
| 56 | +# path: | |
| 57 | +# /home/runner/**/*.failed.png |
| 58 | +# /home/runner/**/*.comparison.png |
| 59 | +# - name: Kover XML |
| 60 | +# if: github.ref == 'refs/heads/main' |
| 61 | +# run: ./gradlew koverXmlReport |
| 62 | +# - name: Update coverage |
| 63 | +# id: update-coverage |
| 64 | +# if: github.ref == 'refs/heads/main' |
| 65 | +# run: | |
| 66 | +# python scripts/update-coverage.py |
| 67 | +# - name: Commit coverage stats |
| 68 | +# uses: EndBug/add-and-commit@v9 |
| 69 | +# if: github.ref == 'refs/heads/main' |
| 70 | +# with: |
| 71 | +# add: './README.md' |
| 72 | +# message: "Update coverage stats: ${{ steps.update-coverage.outputs.COVERAGE }}" |
| 73 | +# |
| 74 | +# integration-and-e2e: |
| 75 | +# runs-on: ubuntu-latest |
| 76 | +# timeout-minutes: 20 |
| 77 | +# steps: |
| 78 | +# - uses: actions/checkout@v6 |
| 79 | +# - uses: actions/setup-java@v5 |
| 80 | +# with: |
| 81 | +# distribution: temurin |
| 82 | +# java-version: 21.0.10 |
| 83 | +# cache: 'gradle' |
| 84 | +# - name: Integration & E2E |
| 85 | +# env: |
| 86 | +# AWS_SYNC: ${{ secrets.AWS_SYNC }} |
| 87 | +# AWS_LOGS: ${{ secrets.AWS_LOGS }} |
| 88 | +# run: xvfb-run --auto-servernum ./gradlew integrationAndE2E --info |
| 89 | +# - name: Export test results |
| 90 | +# uses: actions/upload-artifact@v6 |
| 91 | +# with: |
| 92 | +# name: integration-and-e2e-results |
| 93 | +# path: /home/runner/work/Dartzee/Dartzee/build/reports/tests/integrationAndE2E/**/*.html |
94 | 94 | build: |
95 | 95 | runs-on: ubuntu-latest |
96 | 96 | timeout-minutes: 10 |
|
0 commit comments