Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Commit

Permalink
Merge pull request #327 from multinet-app/ci-caching
Browse files Browse the repository at this point in the history
Add pipenv and yarn caching
  • Loading branch information
JackWilb committed Mar 3, 2020
2 parents 6d7071b + e6ddd9c commit b1a3f84
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,17 @@ jobs:

# Build and test Multinet server.
- run: pip install pipenv
- run: pipenv install --dev --deploy

- uses: actions/cache@v1
id: multinet-cache
with:
path: /home/runner/.local/share/virtualenvs/
key: ${{ runner.os }}-${{ hashFiles('/home/runner/work/multinet/multinet/Pipfile.lock') }}-pipenv-cache-1

- name: Install pipenv packages
if: steps.multinet-cache.outputs.cache-hit != 'true'
run: pipenv install --dev --deploy

- run: pipenv run lint
- run: pipenv run format
- run: pipenv run typecheck
Expand All @@ -35,7 +45,17 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: '10.x'
- run: cd client && yarn install

- uses: actions/cache@v1
id: client-cache
with:
path: /home/runner/work/multinet/multinet/client/node_modules
key: ${{ runner.os }}-${{ hashFiles('/home/runner/work/multinet/multinet/client/yarn.lock') }}-client-cache

- name: Install yarn packages
if: steps.client-cache.outputs.cache-hit != 'true'
run: cd client && yarn install

- run: cd client && yarn lint
- run: cd client && yarn lint:test
- run: pipenv run test-server-up
Expand All @@ -44,7 +64,16 @@ jobs:
- run: cd client && yarn build

# Build and test Multinet client library.
- run: cd multinetjs && yarn install
- uses: actions/cache@v1
id: multinetjs-cache
with:
path: /home/runner/work/multinet/multinet/multinetjs/node_modules
key: ${{ runner.os }}-${{ hashFiles('/home/runner/work/multinet/multinet/multinetjs/yarn.lock') }}-multinetjs-cache

- name: Install yarn packages
if: steps.multinetjs-cache.outputs.cache-hit != 'true'
run: cd multinetjs && yarn install

- run: cd multinetjs && yarn build
- run: cd multinetjs && yarn lint
- run: cd multinetjs && yarn test

0 comments on commit b1a3f84

Please sign in to comment.