diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml new file mode 100644 index 000000000..753ad1836 --- /dev/null +++ b/.github/workflows/Build.yml @@ -0,0 +1,12 @@ +name: Build +on: [push, pull_request] +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: '8' + - run: chmod +x gradlew + - run: ./gradlew check --info diff --git a/README.md b/README.md index c444ffbac..86d834d95 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Ktor OpenAPI Generator [![](https://jitpack.io/v/papsign/Ktor-OpenAPI-Generator.svg)](https://jitpack.io/#papsign/Ktor-OpenAPI-Generator) +[![Build](https://github.com/papsign/Ktor-OpenAPI-Generator/workflows/Build/badge.svg)](https://github.com/papsign/Ktor-OpenAPI-Generator/actions) The Ktor OpenAPI Generator is a library to automatically generate the descriptor as you route your ktor application.