|
9 | 9 | jobs: |
10 | 10 | build: |
11 | 11 | runs-on: ubuntu-latest |
| 12 | + strategy: |
| 13 | + matrix: |
| 14 | + total_shard_count: [11] |
| 15 | + shard_number: ['2015', '2016', '2017', '2018', '2019', '2020', '2021', '2022', '2023', '2024', '2025'] |
12 | 16 |
|
13 | 17 | steps: |
14 | 18 | - name: Checkout Main AoC code |
15 | 19 | uses: actions/checkout@v6 |
16 | 20 |
|
17 | | - - name: Checkout the AoC Input files |
| 21 | + - name: Checkout The AoC Input Files |
18 | 22 | uses: actions/checkout@v6 |
19 | 23 | with: |
20 | 24 | token: ${{ secrets.AOC_INPUT }} |
21 | 25 | repository: peckb1/advent-of-code-input |
22 | 26 | path: advent-of-code-input |
23 | 27 | ref: main |
24 | 28 |
|
25 | | - - name: Bring in the gradle wrapper running the build |
26 | | - uses: gradle/wrapper-validation-action@v3 |
| 29 | + - name: Bring In Gradle Wrapper |
| 30 | + uses: gradle/actions/wrapper-validation@v4 |
27 | 31 |
|
28 | 32 | - name: Set up JDK 21 |
29 | 33 | uses: actions/setup-java@v5 |
|
34 | 38 | - name: Grant execute permission for gradlew |
35 | 39 | run: chmod +x gradlew |
36 | 40 |
|
37 | | - - name: Build with Gradle jacocoTestReport |
38 | | - run: ./gradlew --no-daemon build |
39 | | - |
40 | | - - name: Publish Unit Test Results |
41 | | - uses: EnricoMi/publish-unit-test-result-action@v2 |
42 | | - if: always() |
43 | | - with: |
44 | | - files: build/test-results/**/*.xml |
45 | | - |
46 | | - - name: Add coverage to PR |
47 | | - id: jacoco |
48 | | - |
49 | | - with: |
50 | | - paths: ${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml |
51 | | - token: ${{ secrets.GITHUB_TOKEN }} |
52 | | - min-coverage-overall: 40 |
53 | | - min-coverage-changed-files: 60 |
| 41 | + - name: Build with Gradle jacocoTestReport for year ${{ matrix.shard_number }} |
| 42 | + run: ./gradlew --no-daemon build -Pyear=${{ matrix.shard_number }} |
0 commit comments