mirror of
https://github.com/s4u/maven-settings-action.git
synced 2026-02-12 00:05:49 +08:00
Merge remote-tracking branch 'origin/master' into releases/v2
This commit is contained in:
27
.github/workflows/audit.yml
vendored
Normal file
27
.github/workflows/audit.yml
vendored
Normal 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
|
||||
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@ -1,7 +1,9 @@
|
||||
name: "Test Action"
|
||||
name: "Test"
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches-ignore:
|
||||
- 'dependabot/*'
|
||||
schedule:
|
||||
- cron: '22 22 * * 5'
|
||||
|
||||
@ -26,7 +28,6 @@ jobs:
|
||||
|
||||
- run: npm version
|
||||
- run: npm ci
|
||||
- run: npm audit
|
||||
- run: npm test
|
||||
|
||||
- uses: ./
|
||||
|
||||
29
README.md
29
README.md
@ -1,5 +1,7 @@
|
||||
# maven-settings-action
|
||||
[](https://github.com/s4u/maven-settings-action/actions)
|
||||
[](https://github.com/s4u/maven-settings-action/actions?query=workflow%3ATest)
|
||||
[](https://github.com/s4u/maven-settings-action/actions?query=workflow%3AAudit)
|
||||
|
||||
|
||||
This action setup maven environment for use in action by:
|
||||
- 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
|
||||
|
||||
# Contributions
|
||||
|
||||
- Contributions are welcome!
|
||||
- Give a star - if you want to encourage me to work on a project
|
||||
- Don't hesitate create issue
|
||||
- Give :star: - if you want to encourage me to work on a project
|
||||
- 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
|
||||
See [action.yml](action.yml)
|
||||
@ -19,13 +28,13 @@ See [action.yml](action.yml)
|
||||
Create default ```settings.xml```:
|
||||
```yml
|
||||
steps:
|
||||
- uses: s4u/maven-settings-action@v2.0
|
||||
- uses: s4u/maven-settings-action@v2
|
||||
```
|
||||
|
||||
Create ```settings.xml``` with server section:
|
||||
```yml
|
||||
steps:
|
||||
- uses: s4u/maven-settings-action@v2.0
|
||||
- uses: s4u/maven-settings-action@v2
|
||||
with:
|
||||
servers: '[{"id": "serverId", "username": "username", "password": "password"}]'
|
||||
```
|
||||
@ -33,7 +42,7 @@ steps:
|
||||
Create ```settings.xml``` with maven properties:
|
||||
```yml
|
||||
steps:
|
||||
- uses: s4u/maven-settings-action@v2.0
|
||||
- uses: s4u/maven-settings-action@v2
|
||||
with:
|
||||
properties: '[{"propertyName1": "propertyValue1"}, {"propertyName2": "propertyValue2"}]'
|
||||
```
|
||||
@ -41,7 +50,7 @@ steps:
|
||||
Create ```settings.xml``` with https://oss.sonatype.org/content/repositories/snapshots in repository list
|
||||
```yml
|
||||
steps:
|
||||
- uses: s4u/maven-settings-action@v2.0
|
||||
- uses: s4u/maven-settings-action@v2
|
||||
with:
|
||||
sonatypeSnapshots: true
|
||||
```
|
||||
@ -49,7 +58,7 @@ steps:
|
||||
Do not override existing ```settings.xml```, from version 2.0 file is override by default :
|
||||
```yml
|
||||
steps:
|
||||
- uses: s4u/maven-settings-action@v2.0
|
||||
- uses: s4u/maven-settings-action@v2
|
||||
with:
|
||||
override: false
|
||||
```
|
||||
@ -57,7 +66,7 @@ steps:
|
||||
Do not add github to server in ```settings.xml```, by default is added:
|
||||
```yml
|
||||
steps:
|
||||
- uses: s4u/maven-settings-action@v2.0
|
||||
- uses: s4u/maven-settings-action@v2
|
||||
with:
|
||||
githubServer: false
|
||||
```
|
||||
|
||||
868
package-lock.json
generated
868
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user