Merge remote-tracking branch 'origin/master' into releases/v2

This commit is contained in:
Slawomir Jaranowski
2020-03-19 21:06:31 +01:00
4 changed files with 407 additions and 544 deletions

27
.github/workflows/audit.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: "Audit"
on:
pull_request:
push:
branches-ignore:
- 'dependabot/*'
schedule:
- cron: '09 22 * * *'
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- run: npm version
- run: npm ci
- run: npm audit

View File

@ -1,7 +1,9 @@
name: "Test Action" name: "Test"
on: on:
pull_request: pull_request:
push: push:
branches-ignore:
- 'dependabot/*'
schedule: schedule:
- cron: '22 22 * * 5' - cron: '22 22 * * 5'
@ -26,7 +28,6 @@ jobs:
- run: npm version - run: npm version
- run: npm ci - run: npm ci
- run: npm audit
- run: npm test - run: npm test
- uses: ./ - uses: ./

View File

@ -1,5 +1,7 @@
# maven-settings-action # maven-settings-action
[![Test Action](https://github.com/s4u/maven-settings-action/workflows/Test%20Action/badge.svg)](https://github.com/s4u/maven-settings-action/actions) [![Test](https://github.com/s4u/maven-settings-action/workflows/Test/badge.svg)](https://github.com/s4u/maven-settings-action/actions?query=workflow%3ATest)
[![Audit](https://github.com/s4u/maven-settings-action/workflows/Audit/badge.svg)](https://github.com/s4u/maven-settings-action/actions?query=workflow%3AAudit)
This action setup maven environment for use in action by: This action setup maven environment for use in action by:
- create maven settings.xml - create maven settings.xml
@ -8,10 +10,17 @@ This action setup maven environment for use in action by:
- add server to servers with id=github, username=$GITHUB_ACTOR and password=$GITHUB_TOKEN - add server to servers with id=github, username=$GITHUB_ACTOR and password=$GITHUB_TOKEN
# Contributions # Contributions
- Contributions are welcome! - Contributions are welcome!
- Give a star - if you want to encourage me to work on a project - Give :star: - if you want to encourage me to work on a project
- Don't hesitate create issue - Don't hesitate create issue for new feature you dream of or if you suspect some bug
# Project versioning
Project use [Semantic Versioning](https://semver.org/).
We recommended to use the latest and specific release version.
In order to keep your project dependencies up to date you can watch this repository *(Releases only)*
or use automatic tools like [Dependabot](https://dependabot.com/).
# Usage # Usage
See [action.yml](action.yml) See [action.yml](action.yml)
@ -19,13 +28,13 @@ See [action.yml](action.yml)
Create default ```settings.xml```: Create default ```settings.xml```:
```yml ```yml
steps: steps:
- uses: s4u/maven-settings-action@v2.0 - uses: s4u/maven-settings-action@v2
``` ```
Create ```settings.xml``` with server section: Create ```settings.xml``` with server section:
```yml ```yml
steps: steps:
- uses: s4u/maven-settings-action@v2.0 - uses: s4u/maven-settings-action@v2
with: with:
servers: '[{"id": "serverId", "username": "username", "password": "password"}]' servers: '[{"id": "serverId", "username": "username", "password": "password"}]'
``` ```
@ -33,7 +42,7 @@ steps:
Create ```settings.xml``` with maven properties: Create ```settings.xml``` with maven properties:
```yml ```yml
steps: steps:
- uses: s4u/maven-settings-action@v2.0 - uses: s4u/maven-settings-action@v2
with: with:
properties: '[{"propertyName1": "propertyValue1"}, {"propertyName2": "propertyValue2"}]' properties: '[{"propertyName1": "propertyValue1"}, {"propertyName2": "propertyValue2"}]'
``` ```
@ -41,7 +50,7 @@ steps:
Create ```settings.xml``` with https://oss.sonatype.org/content/repositories/snapshots in repository list Create ```settings.xml``` with https://oss.sonatype.org/content/repositories/snapshots in repository list
```yml ```yml
steps: steps:
- uses: s4u/maven-settings-action@v2.0 - uses: s4u/maven-settings-action@v2
with: with:
sonatypeSnapshots: true sonatypeSnapshots: true
``` ```
@ -49,7 +58,7 @@ steps:
Do not override existing ```settings.xml```, from version 2.0 file is override by default : Do not override existing ```settings.xml```, from version 2.0 file is override by default :
```yml ```yml
steps: steps:
- uses: s4u/maven-settings-action@v2.0 - uses: s4u/maven-settings-action@v2
with: with:
override: false override: false
``` ```
@ -57,7 +66,7 @@ steps:
Do not add github to server in ```settings.xml```, by default is added: Do not add github to server in ```settings.xml```, by default is added:
```yml ```yml
steps: steps:
- uses: s4u/maven-settings-action@v2.0 - uses: s4u/maven-settings-action@v2
with: with:
githubServer: false githubServer: false
``` ```

890
package-lock.json generated

File diff suppressed because it is too large Load Diff