-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 924 Bytes
/
ci.yml
File metadata and controls
39 lines (32 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
ci:
name: 🧪 Test & lint
environment: ci
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v5.0.1
with:
fetch-depth: 0
# - name: Commit message lint
# uses: wagoid/commitlint-github-action@v4
- name: Setup JDK 17
uses: actions/setup-java@v5.1.0
with:
distribution: 'corretto'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Test
env:
STREAM_BASE_URL: ${{ vars.STREAM_BASE_URL }}
STREAM_API_KEY: ${{ vars.STREAM_API_KEY }}
STREAM_API_SECRET: ${{ secrets.STREAM_API_SECRET }}
run: |
./gradlew spotlessCheck
./gradlew build --info