Skip to content

Fix running script from other directory #12

Fix running script from other directory

Fix running script from other directory #12

Workflow file for this run

name: Test PR
on:
pull_request:
jobs:
test:
strategy:
matrix:
runs-on:
- ubuntu-latest
- macos-latest
name: Test (${{matrix.runs-on}})
runs-on: ${{matrix.runs-on}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run unit tests
run: |
./backport.functions_tests
- name: Test supports execution from non-current directory
run: |
# Test supports execution from non-current directory
SCRIPT_DIR="$(pwd)"
cd ${TMPDIR}
${SCRIPT_DIR}/backport