-
Notifications
You must be signed in to change notification settings - Fork 8
43 lines (37 loc) · 1.32 KB
/
fluentforms-ci.yml
File metadata and controls
43 lines (37 loc) · 1.32 KB
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
40
41
42
43
name: Fluent Forms CI
on:
push:
paths:
- 'fluentforms/**'
- '.github/workflows/fluentforms-ci.yml'
workflow_dispatch:
jobs:
build:
name: Java ${{ matrix.java }} build
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: true
matrix:
java: [ 25 ]
experimental: [false]
# include:
# - java: 25
# experimental: true
steps:
- uses: actions/checkout@v6
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v5
with:
distribution: 'oracle'
java-version: ${{ matrix.java }}
cache: 'maven'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Build with Maven
run: mvn -B package --file fluentforms
- name: Publish to GitHub Packages Apache Maven
if: (github.ref == 'refs/heads/master' || github.ref == 'refs/tags/*') && !matrix.experimental # Only run on main branch or tags and non-experimental
run: mvn -B deploy -DskipTests -s $GITHUB_WORKSPACE/settings.xml --file fluentforms # skip tests because they were performed during the build step
env:
GITHUB_TOKEN: ${{ github.token }}