-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (51 loc) · 1.13 KB
/
buildci.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: CI build
on:
push:
branches:
- main
paths:
- 'java/**'
- 'scr/**'
- 'action.yml'
- 'package.json'
- 'package-lock.json'
- 'webpack.config.js'
- '.github/workflows/buildci.yml'
tags-ignore:
- 'v*.*.*'
pull_request:
branches:
- main
paths:
- 'java/**'
- 'scr/**'
- 'action.yml'
- 'package.json'
- 'package-lock.json'
- 'webpack.config.js'
- '.github/workflows/buildci.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '11'
- name: Build with Maven
run: mvn -B package --file java/pom.xml
- name: Run tests
run: mvn -B test --file java/pom.xml
# Build with npm
- name: Build with npm
run: npm run buildWebpackU
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: collect action descriptor and npm build
path: |
action.yml
bundle/