Align versions across monorepo #123
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
steps: | |
- name: 🚧 Checkout code | |
uses: actions/checkout@v2 | |
- name: 🥁 Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20.x | |
- 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) |