Skip to content

Commit

Permalink
Add branch test action
Browse files Browse the repository at this point in the history
  • Loading branch information
tboeghk committed May 16, 2024
1 parent aafdb1b commit fe9f774
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/branch-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Gradle Check

on:
workflow_dispatch:
push:
branches:
- 'feature/**'
- 'candidate/**'
paths-ignore:
- '*.md'
- '.github/**'

jobs:
check:
name: check formalities and run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
java-package: jdk

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
key: ${{ runner.os }}-gradle-check-${{ hashFiles('versions.lock') }}
restore-keys: |
${{ runner.os }}-gradle-check-
${{ runner.os }}-gradle-
- name: Run gradle check
run: ./gradlew check

0 comments on commit fe9f774

Please sign in to comment.