Skip to content

Commit 9aa673e

Browse files
EdwinIngJdarko-marinov
authored andcommitted
Add Github action to run NonDex with Maven
1 parent 6eccf6c commit 9aa673e

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/ci.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Java CI
10+
11+
on:
12+
push:
13+
branches: [ "master" ]
14+
pull_request:
15+
branches: [ "master" ]
16+
17+
jobs:
18+
maven-build:
19+
runs-on: ${{ matrix.os }}
20+
21+
strategy:
22+
matrix:
23+
os: [ubuntu-latest]
24+
java-version: [8,11,17,21,25]
25+
fail-fast: false
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-java@v4
30+
with:
31+
distribution: 'temurin'
32+
java-version: ${{ matrix.java-version }}
33+
- run: mvn verify -B
34+
35+
gradle-build:
36+
runs-on: ${{ matrix.os }}
37+
38+
strategy:
39+
matrix:
40+
os: [ubuntu-latest]
41+
java-version: [8,11,17,21]
42+
fail-fast: false
43+
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: actions/setup-java@v4
47+
with:
48+
distribution: 'temurin'
49+
java-version: ${{ matrix.java-version }}
50+
- name: Make gradlew executable
51+
run: chmod +x nondex-gradle-plugin/gradlew
52+
53+
- name: Build with Gradle
54+
run: cd nondex-gradle-plugin && ./gradlew check

0 commit comments

Comments
 (0)