Skip to content

feat!: rewrite to lit #34

feat!: rewrite to lit

feat!: rewrite to lit #34

name: Validate Generated Files
on:
push:
branches:
- main
pull_request:
jobs:
ValidateReadmes:
name: Validate README files
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Use Node.js v20
uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
- name: Install Dependencies
run: yarn --immutable
- name: Generate code
run: yarn inject-readme-markdown
- name: Format files
run: yarn format
- name: Validate changes
run: |
git status
if ! git diff-index --quiet HEAD --; then
echo "::error file=README.md::File did not match generated file after script. Please review and adjust accordingly."
exit 1;
fi
ValidateExports:
name: Validate core exports and side effects
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Use Node.js v20
uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
- name: Install Dependencies
run: yarn --immutable
- name: Generate code
run: yarn inject-package-exports
- name: Format files
run: yarn format
- name: Validate changes
run: |
git status
if ! git diff-index --quiet HEAD --; then
echo "::error file=packages/core/package.json::File did not match generated file after script. Please review and adjust accordingly."
exit 1;
fi
ValidateCoreIndexReExports:
name: Validate core index.ts re-exports
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Use Node.js v20
uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
- name: Install Dependencies
run: yarn --immutable
- name: Generate code
run: yarn inject-core-index-re-exports
- name: Format files
run: yarn format
- name: Validate changes
run: |
git status
if ! git diff-index --quiet HEAD --; then
echo "::error file=packages/core/src/index.ts::File did not match generated file after script. Please review and adjust accordingly."
exit 1;
fi
ValidateReactIndexExports:
name: Validate react index.ts exports
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Use Node.js v20
uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
- name: Install Dependencies
run: yarn --immutable
- name: Generate code
run: yarn inject-react-index-exports
- name: Format files
run: yarn format
- name: Validate changes
run: |
git status
if ! git diff-index --quiet HEAD --; then
echo "::error file=packages/react/src/index.ts::File did not match generated file after script. Please review and adjust accordingly."
exit 1;
fi