refactor: leverage type inference more #1514
Workflow file for this run
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
name: Build PRs and main when updated | |
on: | |
push: | |
branches: | |
- "main" | |
paths-ignore: | |
- '.gitignore' | |
- 'CODEOWNERS' | |
- 'LICENSE' | |
- '*.md' | |
- '*.adoc' | |
- '*.txt' | |
- '.all-contributorsrc' | |
pull_request: | |
paths-ignore: | |
- '.gitignore' | |
- 'CODEOWNERS' | |
- 'LICENSE' | |
- '*.md' | |
- '*.adoc' | |
- '*.txt' | |
- '.all-contributorsrc' | |
jobs: | |
extract-branch-name: | |
runs-on: ubuntu-latest | |
outputs: | |
branch_name: ${{ steps.extract_branch.outputs.branch }} | |
steps: | |
- name: Extract branch name | |
shell: bash | |
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | |
id: extract_branch | |
build-with-quarkus-version: | |
needs: | |
- extract-branch-name | |
strategy: | |
matrix: | |
java-version: [ 11, 17 ] | |
quarkus-version-jq-cmd: | |
- '.platforms[0]."current-stream-id" as $current | .platforms[0].streams[] | select(.id == $current) | .releases[0].version' | |
# - '.platforms[0].streams[] | select(.id == "3.2") | .releases[0].version' | |
uses: ./.github/workflows/build-for-quarkus-version.yml | |
with: | |
quarkus-version-jq-cmd: ${{ matrix.quarkus-version-jq-cmd }} | |
java-version: ${{ matrix.java-version }} | |
branch: ${{ needs.extract-branch-name.outputs.branch_name }} | |
native-modules: "integration-tests" | |
repository: ${{ github.event.pull_request.head.repo.full_name }} |