issue 67
This commit is contained in:
parent
6db055623d
commit
6d34813702
28
.github/workflows/ci.yaml
vendored
28
.github/workflows/ci.yaml
vendored
|
@ -47,11 +47,20 @@ jobs:
|
||||||
run: yarn test
|
run: yarn test
|
||||||
- name: Run tsc and webpack
|
- name: Run tsc and webpack
|
||||||
run: yarn bundle
|
run: yarn bundle
|
||||||
|
- name: Cache lang build and bundle outputs
|
||||||
|
uses: actions/cache@v3
|
||||||
|
id: lang-outputs
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
lib
|
||||||
|
dist
|
||||||
|
node_modules
|
||||||
|
key: ${{ github.sha }}
|
||||||
|
|
||||||
components-build-test:
|
components-build-test:
|
||||||
name: Components build and test
|
name: Components build and test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: pre_check
|
needs: [pre_check, lang-build-test]
|
||||||
if: ${{ needs.pre_check.outputs.should_skip_components != 'true' }}
|
if: ${{ needs.pre_check.outputs.should_skip_components != 'true' }}
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
@ -59,14 +68,15 @@ jobs:
|
||||||
working-directory: packages/components
|
working-directory: packages/components
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install packages at monorepo-level and build squiggle-language
|
- name: Gain lang build and bundle outputs from cache
|
||||||
run: |
|
uses: actions/cache@v3
|
||||||
cd ../../ &&
|
id: lang-outputs
|
||||||
yarn &&
|
with:
|
||||||
cd packages/squiggle-lang &&
|
path: |
|
||||||
yarn &&
|
lib
|
||||||
yarn build &&
|
dist
|
||||||
yarn bundle
|
node_modules
|
||||||
|
key: ${{ github.sha }}
|
||||||
- name: Install packages for components package
|
- name: Install packages for components package
|
||||||
run: yarn
|
run: yarn
|
||||||
- name: See if storybook builds
|
- name: See if storybook builds
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
"ci:lang": "yarn workspace @quri/squiggle-lang ci",
|
"ci:lang": "yarn workspace @quri/squiggle-lang ci",
|
||||||
"ci:components": "yarn ci:lang && yarn workspace @quri/squiggle-components ci",
|
"ci:components": "yarn ci:lang && yarn workspace @quri/squiggle-components ci",
|
||||||
"ci:playground": "yarn ci:components && yarn workspace @quri/squiggle-playground ci",
|
"ci:playground": "yarn ci:components && yarn workspace @quri/squiggle-playground ci",
|
||||||
"nodeclean": "rm -r node_modules && rm -r packages/*/node_modules && "
|
"nodeclean": "rm -r node_modules && rm -r packages/*/node_modules"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user