Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) Migrate render html #9

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
37 changes: 18 additions & 19 deletions .github/workflows/css-processor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,21 @@ jobs:
node-version: [20.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --immutable
- run: yarn test:css-processor:ts
name: Typescript Tests
- run: yarn run test:css-processor:lint
name: Linting Tests
- run: yarn run test:css-processor:jest --coverage
name: Behavior Tests
- run: yarn build:css-processor
name: Build
- uses: codecov/codecov-action@v4
with:
flags: css-processor
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --immutable
- run: yarn workspace @native-html/css-processor test:ts
name: Typescript Tests
- run: yarn workspace @native-html/css-processor test:jest --coverage
name: Jest Tests
- run: yarn workspace @native-html/css-processor test:lint
name: Linting Tests
- run: yarn workspace @native-html/css-processor build
- uses: codecov/codecov-action@v4
with:
flags: css-processor
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
46 changes: 46 additions & 0 deletions .github/workflows/native-html.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This workflow will do a clean install of node dependencies, run JS and Typescript tests.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: native-html

on:
push:
branches:
- main
pull_request:

jobs:
test:
name: Testing
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v4
- name: Cache .dts
id: cache-dts
uses: actions/cache@v4
with:
path: .dts
key: ${{ runner.os }}-dts
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --immutable
- run: yarn workspace @native-html/render-html test:ts
name: Typescript Tests
- run: yarn workspace @native-html/render-html test:jest --coverage
name: Jest Tests
- run: yarn workspace @native-html/render-html test:lint
name: Linting Tests
- run: yarn workspace @native-html/render-html build
name: Build
- uses: codecov/codecov-action@v4
with:
flags: render-html
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
24 changes: 12 additions & 12 deletions .github/workflows/performances.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
node-version: [20.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --immutable
- run: yarn build:css-processor
name: Build dependencies
- run: yarn build:transient-render-engine
name: Build
- run: yarn test:transient-render-engine:perf
name: Performance testing
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --immutable
- run: yarn workspace @native-html/css-processor build
name: Build dependencies
- run: yarn workspace @native-html/transient-render-engine build
name: Build
- run: yarn workspace @native-html/transient-render-engine benchmark
name: Benchmark
42 changes: 21 additions & 21 deletions .github/workflows/transient-render-engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,24 @@ jobs:
node-version: [20.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --immutable
- run: yarn build:css-processor
name: Build dependencies
- run: yarn test:transient-render-engine:ts
name: Typescript Tests
- run: yarn run test:transient-render-engine:lint
name: Linting Tests
- run: yarn run test:transient-render-engine:jest --coverage
name: Behavior Tests
- run: yarn build:transient-render-engine
name: Build
- uses: codecov/codecov-action@v4
with:
flags: transient-render-engine
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --immutable
- run: yarn workspace @native-html/css-processor build
name: Build dependencies
- run: yarn workspace @native-html/transient-render-engine test:jest --coverage
name: Jest Tests
- run: yarn workspace @native-html/transient-render-engine test:lint
name: Linting Tests
- run: yarn workspace @native-html/transient-render-engine test:ts
name: Typescript Tests
- run: yarn workspace @native-html/transient-render-engine build
name: Build
- uses: codecov/codecov-action@v4
with:
flags: transient-render-engine
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# VSCode
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json

jsconfig.json

Expand Down
Loading
Loading