Skip to content

Commit 6790b36

Browse files
Merge pull request #18 from acuaroo/dev
Created Github Actions
2 parents cd0469a + a7df5af commit 6790b36

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/lint-and-build.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Lint and Build
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout sources
9+
uses: actions/checkout@v4
10+
- name: Setup Gradle
11+
uses: gradle/actions/setup-gradle@v3
12+
13+
- name: Cache Gradle packages and daemon
14+
uses: actions/cache@v3
15+
with:
16+
path: |
17+
~/.gradle/caches
18+
~/.gradle/wrapper
19+
~/.gradle/daemon
20+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
21+
restore-keys: ${{ runner.os }}-gradle-
22+
23+
- name: Spotless linting
24+
run: ./gradlew spotlessCheck
25+
- name: Gradle building
26+
run: ./gradlew build

0 commit comments

Comments
 (0)