-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17239 from mvdbeek/cache_client_build
Build and cache galaxy client for selenium and startup tests
- Loading branch information
Showing
6 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Build client for selenium tests | ||
on: | ||
workflow_call: | ||
jobs: | ||
build-client: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
commit-id: ${{ steps.client-commit.outputs.commit }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: 'galaxy root' | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.12.1' | ||
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@v3 | ||
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' | ||
run: make client | ||
working-directory: 'galaxy root' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters