Skip to content

Commit

Permalink
Build as part of CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TranquilMarmot committed Jul 19, 2020
1 parent bec4c1f commit 8202fc1
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [main]

jobs:
lint:
ci:
runs-on: ubuntu-latest

steps:
Expand All @@ -19,16 +19,23 @@ jobs:
with:
node-version: "12.x"

# This is needed because lerna expects loom-common to be an npm package (which it only is if it has a package.json file)
# As part of this, we have to copy loom-common's `package.json` to its `out` folder.
# This is needed because lerna expects loom-common/out to be an npm package (which it only is if it has a package.json file)
# Normally, this is done as part of the build process, but it also needs to be done for a fresh install.
- name: Setup loom-common
run: mkdir -p loom-common/out && cp loom-common/package.json loom-common/out

- name: Install dependencies
run: npm install
run: |
mkdir -p loom-common/out
cp loom-common/package.json loom-common/out
npm install
- name: Lint
run: npm run lint

# This step has two purposes:
# 1. Typecheck everything by putting it through tsc
# 2. Build loom-common, which is needed by loom-editor and loom-extension tests
- name: Typecheck and Build
run: npm run build

- name: Tests
run: npm run test

0 comments on commit 8202fc1

Please sign in to comment.