Cache yarn packages in tests that build client

This commit is contained in:
mvdbeek
2021-06-30 12:05:24 +02:00
parent 5187be208d
commit bf28104dfb
4 changed files with 13 additions and 1 deletions
+3
View File
@@ -30,6 +30,9 @@ jobs:
with:
path: ~/.cache/pip
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('galaxy root/requirements.txt') }}
- uses: mvdbeek/gha-yarn-cache@master
with:
yarn-lock-file: 'galaxy root/client/yarn.lock'
- name: Install tox
run: pip install tox
# Use this job to test the latest migrations
@@ -41,6 +41,9 @@ jobs:
with:
path: ~/.cache/pip
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('galaxy root/requirements.txt') }}
- uses: mvdbeek/gha-yarn-cache@master
with:
yarn-lock-file: 'galaxy root/client/yarn.lock'
- name: Run tests
run: './run_tests.sh -integration test/integration_selenium'
working-directory: 'galaxy root'
+4 -1
View File
@@ -12,7 +12,10 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node}}
- uses: mvdbeek/gha-yarn-cache@master
with:
yarn-lock-file: 'client/yarn.lock'
- run: yarn install
working-directory: client
- run: yarn jest
working-directory: client
working-directory: client
+3
View File
@@ -34,6 +34,9 @@ jobs:
with:
path: ~/.cache/pip
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('galaxy root/requirements.txt') }}
- uses: mvdbeek/gha-yarn-cache@master
with:
yarn-lock-file: 'galaxy root/client/yarn.lock'
- uses: nanasess/setup-chromedriver@master
- name: Run tests
run: ./run_tests.sh -selenium lib/galaxy_test/selenium -- --num-shards=3 --shard-id=${{ matrix.chunk }}