Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update permissions and cache #4

Merged
merged 16 commits into from
Apr 17, 2024
29 changes: 0 additions & 29 deletions .github/workflows/check_style.yml

This file was deleted.

63 changes: 63 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: CI Jobs

on:
pull_request:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check-style:
name: Ktlint check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
cache: gradle

- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v3

- name: Gradle Setup
uses: gradle/actions/setup-gradle@v3

- name: Run ktlint
run: |
cd husky
./gradlew ktlintCheck

run-tests:
name: Run tests
runs-on: ubuntu-latest
needs: [check-style]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
cache: gradle

- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v3

- name: Gradle Setup
uses: gradle/actions/setup-gradle@v3

- name: Run stable tests
run: |
cd husky
./gradlew testHuskyStableReleaseUnitTest
10 changes: 0 additions & 10 deletions .woodpecker/check_style.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .woodpecker/run_tests.yml

This file was deleted.