Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Domi04151309 committed Jan 11, 2024
1 parent 66580c1 commit cf72139
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
github: Domi04151309
custom: ['https://www.paypal.com/donate/?hosted_button_id=487FTCX52P9WA']
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Continuous Integration

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

jobs:
ktlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install
run: |
curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.0.1/ktlint
chmod a+x ktlint
sudo mv ktlint /usr/local/bin/
- name: Run
run: ktlint
detekt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Run
run: |
chmod +x gradlew
./gradlew detekt
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Run
run: |
chmod +x gradlew
./gradlew build

0 comments on commit cf72139

Please sign in to comment.