Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

feat(): Update dist with latest build (#167) #281

feat(): Update dist with latest build (#167)

feat(): Update dist with latest build (#167) #281

Workflow file for this run

name: "build-test"
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
- develop
jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
npm ci
npm test
test-basic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
servers: '[{"id": "foo", "username": "fu", "password": "bar" }]'
mirrors: '[{ "id": "nexus", "mirrorOf": "!my-org-snapshots,*", "url": "http://redacted/nexus/content/groups/public" }]'
repositories: '[{"id": "foo", "url": "https://fu.bar"}]'
plugin_repositories: '[{"id": "foo-plugin", "url": "https://fu.bar.plugin"}]'
profiles: '[{ "id": "foo.profile", "name": "foo.profile", "url": "http://foo.bar.profile", "properties": { "foo": "property-1", "bar": "property-2"} }]'
plugin_groups: '[ "some.plugin.group.id", "some.other.plugin.group.id" ]'
active_profiles: '[ "foo.profile" ]'
- run: |
cat ~/.m2/settings.xml
test-expanded:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
repositories: >
[
{
"id": "some-repository",
"name": "some-repository-name",
"url": "http://some.repository.url",
"releases": {
"enabled": "true"
},
"snapshots": {
"enabled": "false"
}
}
]
plugin_repositories: >
[
{
"id": "some-plugin-repository",
"name": "some-plugin-repository-name",
"url": "http://some.plugin.repository.url",
"releases": {
"enabled": "true"
},
"snapshots": {
"enabled": "false"
}
}
]
servers: >
[
{
"id": "some-id",
"username": "${env.USER}",
"password": "${env.PASS}",
"configuration": {
"httpConfiguration": {
"all": {
"usePreemptive": "true"
}
}
}
}
]
mirrors: >
[
{
"id": "nexus",
"mirrorOf": "!my-org-snapshots,*",
"url": "http://redacted/nexus/content/groups/public"
}
]
profiles: >
[
{
"id": "foo.profile",
"name": "foo.profile",
"url": "http://foo.bar.profile",
"properties": {
"foo": "property-1",
"bar": "property-2"
}
}
]
plugin_groups: >
[
"some.plugin.group.id",
"some.other.plugin.group.id"
]
active_profiles: >
[
"some-profile"
]
output_file: .m2/settings.xml
- run: |
cat .m2/settings.xml
test-filepath:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
output_file: custom.xml
- run: |
cat custom.xml
test-maven:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
output_file: custom.xml
- run: |
cat custom.xml
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'adopt'
- run: |
cd test/maven;
./mvnw -s ../../custom.xml clean test
test-env-filepath:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
output_file: $GITHUB_WORKSPACE/custom.xml
- run: |
cat $GITHUB_WORKSPACE/custom.xml
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'adopt'
- run: |
cd test/maven;
./mvnw -s $GITHUB_WORKSPACE/custom.xml clean test