Skip to content

Convert to monorepo with Yarn 4 #23

Convert to monorepo with Yarn 4

Convert to monorepo with Yarn 4 #23

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
# changes:
# name: Check for changes
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Filter packages
# uses: dorny/paths-filter@v3
# id: filter
# with:
# filters: |
# packages:
# - 'packages/*'
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node: ['21.x']
steps:
- name: Check out repo
uses: actions/checkout@v4
# with:
# ref: ${{ github.event.pull_request.head.sha }}
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Mock the templates
run: yarn node ./scripts/mockTemplates.mjs
# - name: Download Artifacts
# uses: actions/download-artifact@v4
# with:
# name: ${{ needs.changes.outputs.packages }}
# path: ${{ needs.changes.outputs.packages }}
# - run: ls -lah
# - name: Install build artifact
# run: yarn workspace ${{ needs.changes.outputs.packages }} add $(pwd)/package.tgz
# - name: Run tests, against dist
# run: yarn test
# build:
# name: Build
# runs-on: ubuntu-latest
# strategy:
# matrix:
# node: ['20.x']
# steps:
# - name: Check out repo
# uses: actions/checkout@v4
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# - name: Use Node.js ${{ matrix.node }}
# uses: actions/setup-node@v4
# - name: Install dependencies
# run: yarn install
# - name: Build
# run: yarn build