APT-576 adding functionality to check if all orgs are the same in foreman.toml #143
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 | |
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: ./ | |
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.setup-foreman-failure.outcome == 'success' | |
run: exit 1 | |
- name: succeed of failure | |
if: always() | |
run: exit 0 |