name: Build client for selenium tests on: workflow_call: outputs: commit-id: description: Commit ID value: ${{ jobs.build-client.outputs.commit-id }} jobs: build-client: runs-on: ubuntu-latest outputs: commit-id: ${{ steps.client-commit.outputs.commit }} steps: - uses: actions/checkout@v6 with: path: 'galaxy root' persist-credentials: false - name: Read Node.js version id: node-version run: echo "version=$(cat 'galaxy root/client/.node_version')" >> $GITHUB_OUTPUT - uses: actions/setup-node@v6 with: node-version: ${{ steps.node-version.outputs.version }} - name: Setup pnpm uses: pnpm/action-setup@v4 with: package_json_file: 'galaxy root/package.json' - name: get client commit id: client-commit shell: bash run: echo "commit=$(git rev-parse HEAD 2>/dev/null)" >> $GITHUB_OUTPUT working-directory: 'galaxy root' - name: cache client build uses: actions/cache@v5 id: cache with: key: galaxy-static-${{ steps.client-commit.outputs.commit }} path: 'galaxy root/static' - name: Build client if: steps.cache.outputs.cache-hit != 'true' env: GALAXY_PLUGIN_BUILD_FAIL_ON_ERROR: 1 NODE_OPTIONS: --max-old-space-size=4096 run: make client working-directory: 'galaxy root'