Skip to content

Commit

Permalink
Merge branch 'master' into agent-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
futursolo committed Jul 29, 2023
2 parents 2220ea3 + 4daa2ec commit 1e00743
Show file tree
Hide file tree
Showing 571 changed files with 36,113 additions and 23,279 deletions.
3 changes: 2 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[target.'cfg(target_arch = "wasm32")']
runner = 'wasm-bindgen-test-runner'

# This section needs to be last.
# GitHub Actions modifies this section.
[unstable]
doctest-xcompile = true
# [unstable] must be the last section -- ci/write-optimisation-flags.sh relies on it
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/documentation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: Documentation
about: Report an issue relating to this project's documetation.
about: Report an issue relating to this project's documentation.
title: ''
labels: documentation
assignees: ''
Expand Down
16 changes: 15 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,24 @@ updates:
schedule:
interval: "weekly"
day: "friday"
open-pull-requests-limit: 5
open-pull-requests-limit: 2
groups:
cargo-deps:
patterns:
- "*"

- package-ecosystem: "npm"
directory: "/website"
schedule:
interval: "monthly"
target-branch: "master"
groups:
website-deps:
patterns:
- "*"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
target-branch: "master"
13 changes: 10 additions & 3 deletions .github/workflows/auto-approve-maintainer-pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Auto approve

on: pull_request_target
on:
pull_request_target:
types:
- opened
- reopened
- synchronize
- ready_for_review
- review_requested

jobs:
auto-approve:
Expand All @@ -9,14 +16,14 @@ jobs:
steps:
- name: Check if organization member
id: is_organization_member
uses: JamesSingleton/[email protected].0
uses: JamesSingleton/[email protected].1
with:
organization: "yewstack"
username: ${{ github.actor }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Auto approve
uses: hmarr/auto-approve-action@v2
uses: hmarr/auto-approve-action@v3
if: ${{ steps.is_organization_member.outputs.result == 'true' || github.actor == 'dependabot[bot]' }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
39 changes: 23 additions & 16 deletions .github/workflows/benchmark-ssr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ on:
branches: [master]
paths:
- .github/workflows/benchmark-ssr.yml
- "packages/yew"
- "examples/function_router"
- "tools/benchmark-ssr"
- "packages/yew/**"
- "packages/yew-macro/**"
- "packages/yew-router/**"
- "packages/yew-router-macro/**"
- "examples/function_router/**"
- "tools/benchmark-ssr/**"

jobs:
benchmark-ssr:
Expand All @@ -19,7 +22,7 @@ jobs:
- name: Checkout master
uses: actions/checkout@v3
with:
repository: 'yewstack/yew'
repository: "yewstack/yew"
ref: master
path: yew-master

Expand All @@ -29,37 +32,41 @@ jobs:
path: current-pr

- name: Setup toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: wasm32-unknown-unknown
profile: minimal
targets: wasm32-unknown-unknown

- name: Restore Rust cache for master
uses: Swatinem/rust-cache@v1
uses: Swatinem/rust-cache@v2
with:
working-directory: yew-master
key: master

- name: Restore Rust cache for current pull request
uses: Swatinem/rust-cache@v1
uses: Swatinem/rust-cache@v2
with:
working-directory: current-pr
key: pr

- name: Run pull request benchmark
run: cargo run --profile=bench --bin benchmark-ssr -- --output-path ./output.json
working-directory: current-pr
run: cargo run --profile=bench -- --output-path ../output.json
working-directory: current-pr/tools/benchmark-ssr

- name: Run master benchmark
run: cargo run --profile=bench --bin benchmark-ssr -- --output-path ./output.json
working-directory: yew-master
run: cargo run --profile=bench -- --output-path ../output.json
working-directory: yew-master/tools/benchmark-ssr

- name: Write Pull Request ID
run: |
echo "${{ github.event.number }}" > .PR_NUMBER
- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: benchmark-ssr
path: |
yew-master/output.json
current-pr/output.json
.PR_NUMBER
yew-master/tools/output.json
current-pr/tools/output.json
retention-days: 1
Loading

0 comments on commit 1e00743

Please sign in to comment.