Skip to content

Commit

Permalink
Merge pull request #6 from diegocamara/quarkus-update-2.9.2.Final
Browse files Browse the repository at this point in the history
Quarkus update 2.9.2.final
  • Loading branch information
diegocamara authored Jun 13, 2022
2 parents 3c59675 + 64b2ae1 commit ce8deb1
Show file tree
Hide file tree
Showing 11 changed files with 260 additions and 209 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Java CI with Maven

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
container-job:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14.3-alpine
ports:
- 5432:5432
env:
POSTGRES_PASSWORD: 123456
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 14
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Run integration tests
run: |
nohup java -jar target/quarkus-app/quarkus-run.jar & sleep 10s
./collections/run-api-tests.sh
shell: bash
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ We've gone to great lengths to adhere to the Quarkus community styleguides & bes
For more information on how to this works with other frontends/backends, head over to
the [RealWorld](https://github.com/gothinkster/realworld) repo.

[![Build Status](https://travis-ci.org/diegocamara/realworld-api-quarkus.svg?branch=master)](https://travis-ci.org/diegocamara/realworld-api-quarkus)
[![Java CI with Maven](https://github.com/diegocamara/realworld-api-quarkus/actions/workflows/maven.yml/badge.svg)](https://github.com/diegocamara/realworld-api-quarkus/actions/workflows/maven.yml)

# How it works

Expand Down Expand Up @@ -43,27 +43,27 @@ infrastructure/ -> technical details layer

### Start local server

```bash
```shell
./mvnw compile quarkus:dev
```

The server should be running at http://localhost:8080

### Running the application tests

```
```shell
./mvnw test
```

### Running postman collection tests

```
```shell
./collections/run-api-tests.sh
```

### Building jar file

```
```shell
./mvnw package
```

Expand All @@ -73,7 +73,7 @@ GraalVM is necessary for building native executable, more information about sett
in [Quarkus guides](https://quarkus.io/guides/)
and database engine need to be changed.

```
```shell
./mvnw package -Pnative
```

Expand Down
2 changes: 1 addition & 1 deletion collections/run-api-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
set -x

SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
Expand Down
1 change: 0 additions & 1 deletion ci-build.sh → integrated-tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
./mvnw clean package
java -jar target/quarkus-app/quarkus-run.jar > service.log &
SERVICE_PROCESS=$!
tail -f -n0 service.log | grep -q 'Listening on'
Expand Down
Loading

0 comments on commit ce8deb1

Please sign in to comment.