Skip to content

APT-576 adding functionality to check if all orgs are the same in foreman.toml #144

APT-576 adding functionality to check if all orgs are the same in foreman.toml

APT-576 adding functionality to check if all orgs are the same in foreman.toml #144

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
build-in-dir-external-org-false:
name: Test setup-foreman action allow-external-gitub-org false
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: true
continue-on-error: true
- name: fail on success
if: always() && steps.id.setup-foreman-failure.outcome == 'success'
run: exit 1
- name: succeed of failure
if: always()
run: exit 0