Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 68 #74

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,38 @@ jobs:
- run: mvn -V validate -Drequire.java=17 -Drequire.maven=3.9.6
shell: bash

# regressions tests
test-issue-68:
name: Test for issue 68
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: ./
with:
settings-servers: |
[{
"id": "ossrh",
"username": "${{ vars.TEST_68_1 }}",
"password": "${{ vars.TEST_68_2 }}"
}]

- run: cat ~/.m2/settings.xml
- run: |
grep "<id>ossrh</id>" ~/.m2/settings.xml
grep "<username>username-68</username>" ~/.m2/settings.xml
grep "<password>password-68</password>" ~/.m2/settings.xml

test-ok:
name: Test OK
runs-on: ubuntu-latest
needs: [ test, test-default ]
needs: [ test, test-default, test-issue-68 ]
if: always()

steps:
- run: 'true'
if: join(needs.*.result, ',') == 'success,success'
if: join(needs.*.result, ',') == 'success,success,success'

- run: 'false'
if: join(needs.*.result, ',') != 'success,success'
if: join(needs.*.result, ',') != 'success,success,success'