Workflow changes.
This commit is contained in:
parent
1b60558bab
commit
88c5e8f713
|
@ -1,22 +1,30 @@
|
||||||
name: Node.js CI
|
name: "Build and test maven GitHub action"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Set Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 12
|
node-version: 12
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: npm run build-distr
|
- run: npm run build-distr
|
||||||
|
- name: "Set up JDK"
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
java-version: "8"
|
||||||
|
distribution: "adopt"
|
||||||
|
- name: "Verify Java version"
|
||||||
|
run: java -version || java --version
|
||||||
|
- uses: ./
|
||||||
|
with:
|
||||||
|
maven-version: 3.8.1
|
||||||
|
- run: mvn -v
|
||||||
|
|
Loading…
Reference in New Issue