Skip to content

Feature/fix to use correct syntax #1

Feature/fix to use correct syntax

Feature/fix to use correct syntax #1

name: Integration Tests
on:
pull_request:
jobs:
determine-branch:
runs-on: ubuntu-latest
outputs:
branch: ${{ steps.get-branch.outputs.branch }}
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Get current branch
id: get-branch
run: echo "::set-output name=branch::$(git rev-parse --abbrev-ref HEAD)"
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Execute unit tests
run: |
pytest --cov=src --cov-report html tests/
- name: Test 1 - Filename Inspector Default
id: test_1
uses: AbsaOSS/filename-inspector@${{ needs.determine-branch.outputs.branch }}

Check failure on line 32 in .github/workflows/integration_tests.yml

View workflow run for this annotation

GitHub Actions / Integration Tests

Invalid workflow file

The workflow is not valid. .github/workflows/integration_tests.yml (Line: 32, Col: 15): Unrecognized named-value: 'needs'. Located at position 1 within expression: needs.determine-branch.outputs.branch
with:
name-patterns: '*UnitTest.*,*IntegrationTest.*'
paths: '**/src/test/java/**,**/src/test/scala/**'