|
9 | 9 | workflow_dispatch:
|
10 | 10 |
|
11 | 11 | jobs:
|
12 |
| - build_with_native: |
| 12 | + generate-json-matrix: |
| 13 | + name: Native Tests - Read JSON matrix |
13 | 14 | runs-on: ubuntu-latest
|
14 | 15 | if: "github.repository == 'quarkusio/quarkus-quickstarts' || github.event_name == 'workflow_dispatch'"
|
| 16 | + outputs: |
| 17 | + matrix: ${{ steps.generate.outputs.matrix }} |
| 18 | + steps: |
| 19 | + - uses: actions/checkout@v2 |
| 20 | + - id: generate |
| 21 | + run: | |
| 22 | + json=$(.github/generate-native-matrix.sh | tr -d '\n') |
| 23 | + echo "::set-output name=matrix::${json}" |
| 24 | + build-with-native: |
| 25 | + name: ${{matrix.category}} |
| 26 | + runs-on: ubuntu-latest |
| 27 | + needs: [generate-json-matrix] |
| 28 | + if: "github.repository == 'quarkusio/quarkus-quickstarts' || github.event_name == 'workflow_dispatch'" |
| 29 | + strategy: |
| 30 | + max-parallel: 5 |
| 31 | + fail-fast: false |
| 32 | + matrix: ${{ fromJson(needs.generate-json-matrix.outputs.matrix) }} |
15 | 33 | steps:
|
16 | 34 | - uses: actions/checkout@v2
|
17 | 35 | with:
|
@@ -44,10 +62,10 @@ jobs:
|
44 | 62 | cd quarkus
|
45 | 63 | ./mvnw -T1C -e -B --settings .github/mvn-settings.xml clean install -Dquickly-ci
|
46 | 64 |
|
47 |
| - - name: Build Quickstart with native |
| 65 | + - name: Build Quickstarts with Native |
48 | 66 | run: |
|
49 | 67 | ./mvnw -e -B --settings .github/mvn-settings.xml clean install --fail-at-end -Pnative -Dstart-containers \
|
50 |
| - -Dquarkus.native.container-build=true |
| 68 | + -Dquarkus.native.container-build=true -am -pl "${{ matrix.test-modules }}" |
51 | 69 |
|
52 | 70 | #- name: Check RSS
|
53 | 71 | # env:
|
@@ -90,11 +108,16 @@ jobs:
|
90 | 108 | shell: bash
|
91 | 109 | run: rm -rf ~/.m2/repository/org/acme
|
92 | 110 |
|
| 111 | + report: |
| 112 | + name: Report |
| 113 | + runs-on: ubuntu-latest |
| 114 | + needs: [build-with-native] |
| 115 | + if: "always() && github.repository == 'quarkusio/quarkus-quickstarts'" |
| 116 | + steps: |
93 | 117 | - name: Report
|
94 |
| - if: "always() && github.repository == 'quarkusio/quarkus-quickstarts'" |
95 | 118 | env:
|
96 | 119 | GITHUB_TOKEN: ${{ secrets.GITHUB_API_TOKEN }}
|
97 |
| - STATUS: ${{ job.status }} |
| 120 | + STATUS: ${{ needs.build-with-native.result }} |
98 | 121 | run: |
|
99 | 122 | echo "The report step got status: ${STATUS}"
|
100 | 123 | sudo apt-get update -o Dir::Etc::sourcelist="sources.list" \
|
|
0 commit comments