Skip to content

Commit

Permalink
ci(package): install dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Jul 17, 2024
1 parent 62edfbb commit e6fdd7b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Package CI

on:
workflow_call:
inputs:
Expand All @@ -21,8 +23,8 @@ jobs:
node-version-file: .nvmrc
cache: yarn

- name: ${{ inputs.name }} build
run: yarn workspace @morpho-org/${{ inputs.name }} build
- run: yarn install --immutable
- run: yarn workspace @morpho-org/${{ inputs.name }} build

jest:
runs-on: ubuntu-latest
Expand All @@ -36,6 +38,7 @@ jobs:
node-version-file: .nvmrc
cache: yarn

- run: yarn install --immutable
- run: yarn workspace @morpho-org/${{ inputs.name }} jest --passWithNoTests

hardhat:
Expand All @@ -55,6 +58,7 @@ jobs:
path: packages/${{ inputs.name }}/cache
key: hardhat-${{ inputs.name }}-${{ github.ref_name }}

- run: yarn install --immutable
- run: yarn workspace @morpho-org/${{ inputs.name }} hardhat test --bail
env:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

jobs:
jest:
packages:
strategy:
fail-fast: false
matrix:
Expand All @@ -32,3 +32,4 @@ jobs:
name: ${{ matrix.package.name }}
jest: ${{ matrix.package.jest }}
hardhat: ${{ matrix.package.hardhat }}
secrets: inherit

0 comments on commit e6fdd7b

Please sign in to comment.