Skip to content

Commit

Permalink
Refactor CI (#208)
Browse files Browse the repository at this point in the history
* Refactor CI

* Refactor CI
  • Loading branch information
rogervinas authored Jul 22, 2024
1 parent d90d195 commit a1ff9a6
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 50 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/http4k.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Http4k

on:
push:
branches: [ "main" ]
branches: [ main ]
paths:
- .github/workflows/http4k.yml
- docker-compose.yaml
- http4k-app/**
pull_request:
branches: [ "main" ]
branches: [ main ]
paths:
- .github/workflows/http4k.yml
- docker-compose.yaml
Expand All @@ -19,18 +19,21 @@ permissions:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK

- name: Checkout
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1
java-version: 21
distribution: temurin
cache: gradle

- name: Build
uses: gradle/actions/setup-gradle@v3
with:
arguments: build
build-root-directory: http4k-app
23 changes: 13 additions & 10 deletions .github/workflows/ktor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Ktor

on:
push:
branches: [ "main" ]
branches: [ main ]
paths:
- .github/workflows/ktor.yml
- docker-compose.yaml
- ktor-app/**
pull_request:
branches: [ "main" ]
branches: [ main ]
paths:
- .github/workflows/ktor.yml
- docker-compose.yaml
Expand All @@ -19,18 +19,21 @@ permissions:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK

- name: Checkout
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1
java-version: 21
distribution: temurin
cache: gradle

- name: Build
uses: gradle/actions/setup-gradle@v3
with:
arguments: build
build-root-directory: ktor-app
23 changes: 13 additions & 10 deletions .github/workflows/micronaut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Micronaut

on:
push:
branches: [ "main" ]
branches: [ main ]
paths:
- .github/workflows/micronaut.yml
- docker-compose.yaml
- micronaut-app/**
pull_request:
branches: [ "main" ]
branches: [ main ]
paths:
- .github/workflows/micronaut.yml
- docker-compose.yaml
Expand All @@ -19,18 +19,21 @@ permissions:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK

- name: Checkout
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1
java-version: 17
distribution: temurin
cache: gradle

- name: Build
uses: gradle/actions/setup-gradle@v3
with:
arguments: build
build-root-directory: micronaut-app
23 changes: 13 additions & 10 deletions .github/workflows/quarkus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Quarkus

on:
push:
branches: [ "main" ]
branches: [ main ]
paths:
- .github/workflows/quarkus.yml
- docker-compose.yaml
- quarkus-app/**
pull_request:
branches: [ "main" ]
branches: [ main ]
paths:
- .github/workflows/quarkus.yml
- docker-compose.yaml
Expand All @@ -19,18 +19,21 @@ permissions:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK

- name: Checkout
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1
java-version: 21
distribution: temurin
cache: gradle

- name: Build
uses: gradle/actions/setup-gradle@v3
with:
arguments: build
build-root-directory: quarkus-app
23 changes: 13 additions & 10 deletions .github/workflows/springboot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: SpringBoot

on:
push:
branches: [ "main" ]
branches: [ main ]
paths:
- .github/workflows/springboot.yml
- docker-compose.yaml
- springboot-app/**
pull_request:
branches: [ "main" ]
branches: [ main ]
paths:
- .github/workflows/springboot.yml
- docker-compose.yaml
Expand All @@ -19,18 +19,21 @@ permissions:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK

- name: Checkout
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1
java-version: 21
distribution: temurin
cache: gradle

- name: Build
uses: gradle/actions/setup-gradle@v3
with:
arguments: build
build-root-directory: springboot-app

0 comments on commit a1ff9a6

Please sign in to comment.