Skip to content

Enable workspaces

Enable workspaces #101

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [main, ci/*]
pull_request:
branches: [main]
permissions:
packages: write
contents: read
jobs:
build:
name: Build Monorepo
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: 🚧 Checkout code
uses: actions/checkout@v2
with:
lfs: true
- name: 🥁 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: ♻️ NPM CI
run: npm ci
- name: 🛠 Build All packages
run: npm run lerna -- run build
- name: 🧪 Test all packages with coverage
run: npm run lerna -- run coverage
- name: 📊 Upload test results to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
verbose: true # optional (default = false)