Skip to content

Commit 93b0ba7

Browse files
committed
ci: add lint workflow (#107)
1 parent 40b85dc commit 93b0ba7

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
10+
jobs:
11+
lint:
12+
name: lint
13+
runs-on: ubuntu-latest
14+
if: github.repository == 'lithic-com/lithic-java'
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Set up Java
20+
uses: actions/setup-java@v3
21+
with:
22+
distribution: temurin
23+
java-version: |
24+
8
25+
17
26+
cache: gradle
27+
28+
- name: Set up Gradle
29+
uses: gradle/gradle-build-action@v2
30+
31+
- name: Gradle build
32+
run: |
33+
./gradlew build testClasses -x test

0 commit comments

Comments
 (0)