mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-02 19:52:14 +08:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
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@v5
|
|
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@v5
|
|
with:
|
|
node-version: ${{ steps.node-version.outputs.version }}
|
|
cache: 'yarn'
|
|
cache-dependency-path: 'galaxy root/client/yarn.lock'
|
|
- 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@v4
|
|
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
|
|
run: make client
|
|
working-directory: 'galaxy root'
|