setup-maven/README.md

25 lines
581 B
Markdown
Raw Normal View History

2019-12-07 13:29:25 +00:00
### How To Use
Add this step into workflow
```yaml
jobs:
...
steps:
2022-07-27 04:42:49 +00:00
2019-12-07 13:29:25 +00:00
- name: Set up Maven
uses: stCarolas/setup-maven@v5
2019-12-07 13:29:25 +00:00
with:
2021-09-08 12:21:21 +00:00
maven-version: 3.8.2
2019-12-07 13:29:25 +00:00
```
2022-07-27 04:42:49 +00:00
### Development using [Docker](https://docs.docker.com/)
Clone this repository and build the project with command
```batch
docker run --rm -it -v "%PWD%:/usr/src/app" -w /usr/src/app node:12-alpine /bin/sh -c "npm i --no-bin-links && npm run format-check && npm run build"
```
**Note** that `%PWD%` is the project working directory in `Unix` format, such as: `/c/Users/source/repos/setup-maven`