Skip to content

Add support for artifactory auth #171

Add support for artifactory auth

Add support for artifactory auth #171

Workflow file for this run

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