Skip to content

Fix hashFiles error

Fix hashFiles error #2

name: E2E Test

Check failure on line 1 in .github/workflows/_internal-e2e.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/_internal-e2e.yaml

Invalid workflow file

(Line: 37, Col: 9): Unrecognized function: 'hashFiles'. Located at position 13 within expression: always() && hashFiles('_test/demo-package/**') != ''
on:
workflow_dispatch: {}
push:
branches:
- main
paths:
- "_test/demo-package/**"
- ".github/workflows/_internal-e2e.yaml"
- ".github/workflows/e2e.yaml"
- "supported-version/**"
- "!(**/*.md)"
pull_request:
branches:
- main
paths:
- "_test/demo-package/**"
- ".github/workflows/_internal-e2e.yaml"
- ".github/workflows/e2e.yaml"
- "supported-version/**"
- "!(**/*.md)"
jobs:
compute_matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.supported-version.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- uses: ./supported-version
with:
kind: all
id: supported-version
- run: echo ${{ steps.supported-version.outputs.matrix }}
e2e-workflow:
if: ${{ always() && hashFiles('_test/demo-package/**') != '' }}
needs: compute_matrix
uses: ./.github/workflows/e2e.yaml
with:
package_name: mage-os/magento2-demo-package
source_folder: $GITHUB_WORKSPACE/_test/demo-package
matrix: ${{ needs.compute_matrix.outputs.matrix }}
test_command: |
npx playwright test --grep "@setup" --trace on
npx playwright test --grep-invert "@setup" --trace on
fail-fast: false