Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various codestarts fixes #339

Merged
merged 3 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/includes/attributes.adoc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
:quarkus-version: 3.17.0
:quarkus-version: 3.17.4
:quarkus-github-action-version: 2.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class CodestartTest {
@Test
void testContent() throws Throwable {
codestartTest.checkGeneratedSource("org.acme.MyAction");
codestartTest.assertThatGeneratedFileMatchSnapshot(Language.JAVA, "pom.xml");
codestartTest.assertThatGeneratedFile(Language.JAVA, "pom.xml").exists();
codestartTest.assertThatGeneratedFileMatchSnapshot(Language.JAVA, "README.md");
codestartTest.assertThatGeneratedFileMatchSnapshot(Language.JAVA, "action.yml");
codestartTest.assertThatGeneratedFileMatchSnapshot(Language.JAVA, "action.docker.yml");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,25 @@ on:
pull_request:
branches: [ main ]

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: maven

- name: Build
run: ./mvnw -B clean verify -Dquarkus.package.type=uber-jar -Dquarkus.package.add-runner-suffix=false
run: |
# if the repository has been initialized with Windows, we need to set the permissions here
chmod 755 ./mvnw
./mvnw -B clean verify -Dquarkus.package.type=uber-jar -Dquarkus.package.add-runner-suffix=false
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

defaults:
run:
shell: bash

jobs:
build-and-push-action:
runs-on: ubuntu-latest
Expand All @@ -33,6 +37,8 @@ jobs:
- name: Build and publish action to Maven repository
shell: bash
run: |
# if the repository has been initialized with Windows, we need to set the permissions here
chmod 755 ./mvnw
./mvnw -B clean deploy -Dquarkus.package.type=uber-jar -Dquarkus.package.add-runner-suffix=false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,25 @@ on:
pull_request:
branches: [ main ]

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: maven

- name: Build
run: ./mvnw -B clean verify -Dquarkus.package.type=uber-jar -Dquarkus.package.add-runner-suffix=false
run: |
# if the repository has been initialized with Windows, we need to set the permissions here
chmod 755 ./mvnw
./mvnw -B clean verify -Dquarkus.package.type=uber-jar -Dquarkus.package.add-runner-suffix=false
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

defaults:
run:
shell: bash

jobs:
build-and-push-action:
runs-on: ubuntu-latest
Expand All @@ -33,6 +37,8 @@ jobs:
- name: Build and publish action to Maven repository
shell: bash
run: |
# if the repository has been initialized with Windows, we need to set the permissions here
chmod 755 ./mvnw
./mvnw -B clean deploy -Dquarkus.package.type=uber-jar -Dquarkus.package.add-runner-suffix=false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,34 @@ on:
pull_request:
branches: [ main ]

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up JDK {java.version}
uses: actions/setup-java@v4
with:
java-version: {java.version}
distribution: temurin
{#if buildtool.cli == 'gradle'}
{#if buildtool.cli.contains('gradle')}
cache: gradle
{#else}
cache: maven
{/if}

{#if buildtool.cli.contains('gradle')}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

{/if}
- name: Build
{#if buildtool.cli == 'gradle'}
uses: eskatos/gradle-command-action@v1
with:
arguments: {buildtool.cmd.build-ci}
{#else}
run: {buildtool.cli} {buildtool.cmd.build-ci}
{/if}
run: |
# if the repository has been initialized with Windows, we need to set the permissions here
chmod 755 ./mvnw
{buildtool.cli} {buildtool.cmd.build-ci}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

defaults:
run:
shell: bash

jobs:
build-and-push-action:
runs-on: ubuntu-latest
Expand All @@ -33,6 +37,8 @@ jobs:
- name: Build and publish action to Maven repository
shell: bash
run: |
# if the repository has been initialized with Windows, we need to set the permissions here
chmod 755 ./mvnw
./mvnw -B clean deploy -Dquarkus.package.type=uber-jar -Dquarkus.package.add-runner-suffix=false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ env:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

defaults:
run:
shell: bash

jobs:
build-and-push-image:
runs-on: ubuntu-latest
Expand All @@ -34,7 +38,10 @@ jobs:
cache: 'maven'

- name: Build native image
run: ./mvnw clean package -Dnative
run: |
# if the repository has been initialized with Windows, we need to set the permissions here
chmod 755 ./mvnw
./mvnw -B clean package -Dnative

- name: Log in to the Container registry
uses: docker/login-action@v1
Expand Down
Loading