Skip to content

Moved stocked into monorepo #626

Moved stocked into monorepo

Moved stocked into monorepo #626

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
generate_matrix:
name: Get changed packages
runs-on: ubuntu-latest
outputs:
packages: ${{ steps.changed_packages.outputs.packages }}
empty: ${{ steps.changed_packages.outputs.empty }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Find changed packages
id: changed_packages
uses: alexshukel/[email protected]
with:
filter: '@reactive-forms/*'
# coverage:
# name: Coverage report
# needs: [generate_matrix]
# if: ${{ !fromJson(needs.generate_matrix.outputs.empty) }}
# runs-on: ubuntu-latest
# strategy:
# matrix:
# package: ${{ fromJson(needs.generate_matrix.outputs.packages) }}
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - name: Use Node 20.x
# uses: actions/setup-node@v4
# with:
# node-version: 20.x
# - name: Install pnpm 9.12.3
# uses: pnpm/action-setup@v4
# with:
# version: 9.12.3
# - uses: artiomtr/jest-coverage-report-action@v2
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# test-script: pnpm run --prefix ../.. turbo run test --filter ${{ matrix.package.name }}
# package-manager: pnpm
# working-directory: ${{ matrix.package.path }}
size:
# TODO: configure Size limit for all packages
name: Size limit
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install pnpm 9.12.3
uses: pnpm/action-setup@v4
with:
version: 9.12.3
- name: Install dependencies (with cache)
uses: covbot/pnpm-install-with-cache@v1
- name: Size limit
uses: andresz1/size-limit-action@dd31dce7dcc72a041fd3e49abf0502b13fc4ce05
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
package_manager: pnpm
build:
name: Build, lint, and test changed packages on Node 20
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install pnpm 9.12.3
uses: pnpm/action-setup@v4
with:
version: 9.12.3
- name: Install dependencies (with cache)
uses: covbot/pnpm-install-with-cache@v1
- name: Linting, testing & building changed packages
run: pnpm turbo run lint test build --filter=...[origin/${{ github.base_ref }}]