Skip to content

Fix path

Fix path #38

Workflow file for this run

---
name: "Testing action-platformsh-url"
on: pull_request
permissions: write-all
jobs:
ok-test:
name: "Testing on a branch that has an active environment"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
id: active_url
with:
PLATFORMSH_ID: ${{ secrets.TEST_PLATFORMSH_ID }}
PLATFORMSH_KEY: ${{ secrets.TEST_PLATFORMSH_KEY }}
ENVIRONMENT_NAME: master
ALLOW_CANCEL_CRON: 1
missing-test:
name: "Testing on a branch that does not exist"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
id: missing_url
continue-on-error: true
with:
PLATFORMSH_ID: ${{ secrets.TEST_PLATFORMSH_ID }}
PLATFORMSH_KEY: ${{ secrets.TEST_PLATFORMSH_KEY }}
ENVIRONMENT_NAME: nonexistent
PSH_DETECTION_WAIT: 10
- name: Check for failure
if: ${{ steps.missing_url.outcome != 'failure' }}
uses: actions/github-script@v7
with:
script: |
core.setFailed('The test did not fail as expected.')
inactive-test:
name: "Testing on a branch that used to exist"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
id: inactive_url
continue-on-error: true
with:
PLATFORMSH_ID: ${{ secrets.TEST_PLATFORMSH_ID }}
PLATFORMSH_KEY: ${{ secrets.TEST_PLATFORMSH_KEY }}
ENVIRONMENT_NAME: pr-462
PSH_DETECTION_WAIT: 30
- name: Check for failure
if: ${{ steps.inactive_url.outcome != 'failure' }}
uses: actions/github-script@v7
with:
script: |
core.setFailed('The test did not fail as expected.')