add: pipeline for tests and linter
Some checks failed
CI Pipeline / lint-and-test (pull_request) Failing after 39s
Some checks failed
CI Pipeline / lint-and-test (pull_request) Failing after 39s
This commit is contained in:
parent
cc9b381577
commit
3ff53a43e7
33
.github/workflows/ci.yml
vendored
Normal file
33
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
name: CI Pipeline
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
lint-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Code auschecken
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Java 21 einrichten
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '21'
|
||||
|
||||
- name: Gradle Rechte vergeben
|
||||
run: chmod +x gradlew
|
||||
|
||||
- name: 1. Code-Style (Linter) prüfen
|
||||
run: ./gradlew ktlintCheck
|
||||
|
||||
- name: 2. Tests ausführen
|
||||
run: ./gradlew test
|
||||
|
||||
- name: 3. Backend bauen
|
||||
run: ./gradlew build -x test
|
||||
Loading…
Reference in a new issue