mirror of
https://github.com/stCarolas/setup-maven.git
synced 2025-02-25 17:15:47 +00:00
Bump version to release v5.1
This commit is contained in:
parent
22aac7bc44
commit
684bcc4c64
29
.github/workflows/build.yml
vendored
Normal file
29
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
# This workflow will install node dependencies, cache/restore them, build the source code and run tests across different versions of node
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
||||
|
||||
name: Build Action
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
version: [12, 14, 16]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js ${{ matrix.version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.version }}
|
||||
cache: yarn
|
||||
- name: Install dependencies
|
||||
run: yarn --no-bin-links
|
||||
- run: yarn build
|
||||
- run: yarn lint
|
||||
- run: yarn test --coverage
|
45
README.md
45
README.md
@ -1,18 +1,39 @@
|
||||
### How To Use
|
||||
# setup-maven
|
||||
|
||||
Add this step into workflow
|
||||
[](https://github.com/thachnn/setup-maven/actions/workflows/build.yml)
|
||||
[](https://github.com/thachnn/setup-maven/actions/workflows/tests.yml)
|
||||
|
||||
This action provides the following functionality for GitHub Actions runners:
|
||||
|
||||
- Optionally downloading and caching a requested version of Maven, and adding it to the PATH
|
||||
- The requested version supports an exact version or a version range using [SemVer](https://semver.org/) notation
|
||||
|
||||
## Usage
|
||||
|
||||
See [action.yml](action.yml)
|
||||
|
||||
**Basic:**
|
||||
|
||||
```yaml
|
||||
jobs:
|
||||
...
|
||||
steps:
|
||||
|
||||
- name: Set up Maven
|
||||
uses: stCarolas/setup-maven@v5
|
||||
with:
|
||||
maven-version: 3.8
|
||||
steps:
|
||||
- name: Set up Maven
|
||||
uses: thachnn/setup-maven@v5
|
||||
with:
|
||||
maven-version: 3.8
|
||||
```
|
||||
|
||||
The `maven-version` input is optional. If not supplied, the maven version from PATH will be used.
|
||||
|
||||
### Supported version syntax
|
||||
|
||||
The `maven-version` input supports the [Semantic Versioning Specification](https://github.com/npm/node-semver), examples:
|
||||
|
||||
- Major versions: `2`, `3`
|
||||
- More specific versions: `3.2`, `3.3.9`, `3.5.x`, `~3.8.2`, `>=3.3.3`
|
||||
- Latest release: `*`
|
||||
|
||||
## Contributing
|
||||
|
||||
### Development using [Docker](https://docs.docker.com/)
|
||||
|
||||
Clone this repository and build the project with command
|
||||
@ -43,3 +64,7 @@ docker run --rm -it --link docker-sonarqube -v "%PWD%:/usr/src/app" -w /usr/src/
|
||||
-e "SONAR_HOST_URL=http://docker-sonarqube:9000" -e "SONAR_LOGIN=<projectToken>" sonarsource/sonar-scanner-cli ^
|
||||
-Dsonar.projectKey=setup-maven -Dsonar.sources=. "-Dsonar.exclusions=dist/**,lib/**"
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
The scripts and documentation in this project are released under the `MIT License`
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "setup-maven",
|
||||
"version": "5.0.0",
|
||||
"version": "5.1.0",
|
||||
"private": true,
|
||||
"description": "setup maven action",
|
||||
"main": "dist/index.js",
|
||||
|
Loading…
Reference in New Issue
Block a user