mirror of
https://github.com/stCarolas/setup-maven.git
synced 2026-03-26 13:56:39 +00:00
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 1 to 2.1.5. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v1...v2.1.5) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
YAML
name: "Build and test Maven GitHub action"
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ master ]
|
|
push:
|
|
|
|
jobs:
|
|
build:
|
|
name: "Set up Maven and validate"
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
maven_version: [3.1.1, 3.2.5, 3.3.9, 3.5.4, 3.6.3, 3.8.1]
|
|
|
|
steps:
|
|
- name: "Checkout code"
|
|
uses: actions/checkout@v2
|
|
|
|
- name: "Set Node.js"
|
|
uses: actions/setup-node@v2.1.5
|
|
with:
|
|
node-version: 12
|
|
|
|
- name: "Install"
|
|
run: npm install
|
|
|
|
- name: "Run build"
|
|
run: npm run build
|
|
|
|
- name: "Install ncc"
|
|
run: npm i -g @vercel/ncc
|
|
|
|
- name: "Run distribution"
|
|
run: npm run build-dist
|
|
|
|
- name: "Set up JDK"
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
java-version: "8"
|
|
distribution: "adopt"
|
|
|
|
- name: "Set Maven from local GitHub action"
|
|
uses: ./
|
|
with:
|
|
maven-version: ${{ matrix.maven_version }}
|
|
|
|
- name: "Validate Maven version"
|
|
run: mvn -v | head -1 | grep "${{ matrix.maven_version }}"
|