Skip to content

🔧 chore: use nx to simplify running commands on the monorepo #131

🔧 chore: use nx to simplify running commands on the monorepo

🔧 chore: use nx to simplify running commands on the monorepo #131

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: Build
on:
push:
tags:
- 'v*'
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 16.x
- 18.x
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Installation
run: yarn || yarn || yarn # 3 attempts to avoid timeout errors...
- name: Build
run: yarn build
- name: Test
run: yarn test:coverage