-
Notifications
You must be signed in to change notification settings - Fork 103
37 lines (35 loc) · 1.08 KB
/
build.yml
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
name: Build
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [
# '8', Refs: https://github.com/nulab/zxcvbn4j/pull/104
'11',
# '17' Refs: https://github.com/nulab/zxcvbn4j/issues/118
]
fail-fast: false
name: Build and test on JDK ${{ matrix.Java }}
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout project sources
uses: actions/checkout@v3
- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup java
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: temurin
- name: Run gradle
uses: gradle/gradle-build-action@v2
with:
arguments: jacocoTestReport coveralls verGJF checkstyleMain spotbugsMain publishToMavenLocal
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}