-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-translate-setting
- Loading branch information
Showing
99 changed files
with
12,870 additions
and
7,859 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,21 +3,34 @@ name: CI | |
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
inputs: | ||
ref: | ||
description: 'Branch or tag ref to check out' | ||
type: string | ||
required: false | ||
default: '' | ||
artifact_name: | ||
description: 'Name of the artifact to upload' | ||
type: string | ||
required: false | ||
default: 'npm-package' | ||
pull_request: | ||
branches: | ||
- '**' | ||
push: | ||
branches: | ||
- master | ||
- main | ||
- restructure | ||
|
||
jobs: | ||
build_test: | ||
name: Build & Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.ref || '' }} | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: 'package.json' | ||
cache: 'npm' | ||
|
@@ -34,6 +47,7 @@ jobs: | |
npm run test:unit | ||
- name: Coveralls GitHub Action | ||
uses: coverallsapp/[email protected] | ||
timeout-minutes: 2 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Package | ||
|
@@ -44,5 +58,5 @@ jobs: | |
- name: Upload npm package | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: npm-package | ||
name: ${{ inputs.artifact_name || 'npm-package' }} | ||
path: preact.tgz |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
name: Benchmark Debug | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
benchmark: | ||
description: 'Which benchmark to run' | ||
type: choice | ||
options: | ||
- 02_replace1k | ||
- 03_update10th1k_x16 | ||
- 07_create10k | ||
- filter_list | ||
- hydrate1k | ||
- many_updates | ||
- text_update | ||
- todo | ||
required: true | ||
base: | ||
description: 'The branch name, tag, or commit sha of the version of preact to benchmark against.' | ||
type: string | ||
default: main | ||
required: false | ||
trace: | ||
description: 'Whether to capture browser traces for this benchmark run' | ||
type: boolean | ||
default: true | ||
required: false | ||
# A bug in GitHub actions prevents us from passing numbers (as either | ||
# number or string type) to called workflows. So disabling this for now. | ||
# See: https://github.com/orgs/community/discussions/67182 | ||
# | ||
# timeout: | ||
# description: 'How many minutes to give the benchmark to run before timing out and failing' | ||
# type: number | ||
# default: 20 | ||
# required: false | ||
|
||
jobs: | ||
build_local: | ||
name: Build local package | ||
uses: ./.github/workflows/ci.yml | ||
|
||
build_base: | ||
name: Build base package | ||
uses: ./.github/workflows/ci.yml | ||
with: | ||
ref: ${{ inputs.base }} | ||
artifact_name: base-npm-package | ||
|
||
prepare: | ||
name: Prepare environment | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build_local | ||
- build_base | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Download locally built preact package | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: npm-package | ||
- run: mv preact.tgz preact-local.tgz | ||
- name: Upload locally built preact package | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: bench-environment | ||
path: preact-local.tgz | ||
- name: Clear working directory | ||
run: | | ||
ls -al | ||
rm -rf * | ||
echo "====================" | ||
ls -al | ||
- name: Download base package | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: base-npm-package | ||
- run: mv preact.tgz preact-main.tgz | ||
- name: Upload base preact package | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: bench-environment | ||
path: preact-main.tgz | ||
|
||
benchmark: | ||
name: Bench ${{ inputs.benchmark }} | ||
uses: ./.github/workflows/run-bench.yml | ||
needs: prepare | ||
with: | ||
benchmark: ${{ inputs.benchmark }} | ||
trace: ${{ inputs.trace }} | ||
# timeout: ${{ inputs.timeout }} |
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
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
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
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
Oops, something went wrong.