diff --git a/.github/workflows/php-app.yml b/.github/workflows/php-app.yml index c40a95c..136d51e 100644 --- a/.github/workflows/php-app.yml +++ b/.github/workflows/php-app.yml @@ -530,6 +530,7 @@ jobs: working-directory: ${{ inputs.working-directory }} - name: Yaml validation + working-directory: ${{ inputs.working-directory }} run: php ./internals/scripts/YamlLint.php build_backend: @@ -557,6 +558,7 @@ jobs: - name: Update package version env: VERSION: ${{ needs.setup.outputs.version }} + working-directory: ${{ inputs.working-directory }} run: | # Composer versions must match ^v?\d+(\.\d+){0,3}|^dev- if [[ $VERSION =~ ^v?[0-9]+(\.[0-9]+){0,3}$ ]]; then @@ -576,6 +578,7 @@ jobs: - name: Site Config if: inputs.site-config-path != '' shell: bash + working-directory: ${{ inputs.working-directory }} run: | sudo mkdir -p $(dirname ${{ inputs.site-config-path }}) sudo cat < /tmp/configs.yml @@ -588,17 +591,19 @@ jobs: - name: Generate WSDL Files if: inputs.update-wsdl shell: bash + working-directory: ${{ inputs.working-directory }} run: | ./script/tool API UpdateWsdl -v - name: Tar build output + working-directory: ${{ inputs.working-directory }} run: tar -cvf backend-build-output.tar $(ls -d composer.json vendor/ apps/**/wsdl/*.xml 2>/dev/null) - name: Store build artifact uses: actions/upload-artifact@v4 with: name: backend-build-output - path: backend-build-output.tar + path: ${{ inputs.working-directory }}/backend-build-output.tar retention-days: 1 if-no-files-found: error @@ -620,6 +625,7 @@ jobs: - name: Update package version env: VERSION: ${{ needs.setup.outputs.version }} + working-directory: ${{ inputs.working-directory }} run: | contents="$(jq ".version = \"${VERSION}\"" ./package.json)" && echo "${contents}" > ./package.json @@ -631,9 +637,11 @@ jobs: - name: Install NPM dependencies uses: equisoft-actions/yarn-install@v1 + with: + working-directory: ${{ inputs.working-directory }} - name: Webpack - working-directory: . + working-directory: ${{ inputs.working-directory }} run: | SKIP_COMPRESSION=true if [[ "${{ needs.setup.outputs.publishable }}" == "true" ]]; then @@ -642,13 +650,14 @@ jobs: NO_COMPRESS=${SKIP_COMPRESSION} yarn build:production - name: Tar build output + working-directory: ${{ inputs.working-directory }} run: tar -cvf frontend-build-output.tar $(ls -d package.json ${{ inputs.frontend-build-path }} 2>/dev/null) - name: Store build artifact uses: actions/upload-artifact@v4 with: name: frontend-build-output - path: frontend-build-output.tar + path: ${{ inputs.working-directory }}/frontend-build-output.tar retention-days: 1 if-no-files-found: error @@ -687,9 +696,10 @@ jobs: uses: actions/download-artifact@v4 with: name: backend-build-output - path: . + path: ${{ inputs.working-directory }} - name: Un-tar backend build output + working-directory: ${{ inputs.working-directory }} run: tar -xvf backend-build-output.tar - name: Download frontend build output @@ -697,10 +707,11 @@ jobs: uses: actions/download-artifact@v4 with: name: frontend-build-output - path: . + path: ${{ inputs.working-directory }} - name: Un-tar frontend build output if: inputs.frontend + working-directory: ${{ inputs.working-directory }} run: tar -xvf frontend-build-output.tar - name: Determine platforms to build