Moved pxth to reactive-forms monorepo #619
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
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: ubuntu-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: ubuntu-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 }}] |