Add support for artifactory auth #172
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "build-test" | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- "releases/*" | |
jobs: | |
build: | |
name: Test setup-foreman action | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "windows-latest", "macos-latest"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm install | |
- run: npm run all | |
- run: npm run pack | |
- name: setup-foreman | |
uses: ./ | |
with: | |
version: "*" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allow-external-github-orgs: true | |
- run: foreman --version | |
- run: rojo --version | |
build-in-dir: | |
name: Test setup-foreman action with working-directory | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "windows-latest", "macos-latest"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm install | |
- run: npm run all | |
- run: npm run pack | |
- name: setup-foreman with working-directory | |
uses: ./ | |
with: | |
version: "*" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: tests | |
allow-external-github-orgs: true | |
- run: foreman --version | |
- run: selene --version | |
external-org-false-failure: | |
name: Test allow-external-gitub-org false expect failure | |
strategy: | |
matrix: | |
os: ["ubuntu-latest"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm install | |
- run: npm run all | |
- run: npm run pack | |
- name: setup-foreman-failure | |
uses: ./ | |
id: setup-foreman-failure | |
with: | |
version: "*" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: tests | |
allow-external-github-orgs: false | |
continue-on-error: true | |
- name: fail on success | |
if: steps.setup-foreman-failure.outcome == 'success' | |
run: exit 1 | |
- name: succeed on failure | |
run: exit 0 | |
external-org-false-success: | |
name: Test allow-external-gitub-org false expect success | |
strategy: | |
matrix: | |
os: ["ubuntu-latest"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm install | |
- run: npm run all | |
- run: npm run pack | |
- name: setup-foreman-success | |
uses: ./ | |
with: | |
version: "*" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: tests-external-org | |
allow-external-github-orgs: false |