fix: split backpress to function and move hook to component #21
Workflow file for this run
This file contains hidden or 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: PR Check | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| concurrency: | |
| group: pr-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| permissions: | |
| pull-requests: write | |
| jobs: | |
| mention: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup OpenHarmony SDK | |
| uses: openharmony-rs/setup-ohos-sdk@v0.1 | |
| id: setup-ohos | |
| with: | |
| version: "5.0.0" | |
| - name: setup Rust | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: "stable" | |
| components: "clippy" | |
| target: "aarch64-unknown-linux-ohos,armv7-unknown-linux-ohos,x86_64-unknown-linux-ohos" | |
| - name: Install oxk | |
| uses: baptiste0928/cargo-install@v3 | |
| with: | |
| crate: oxk | |
| git: https://github.com/ohos-rs/oxc-ark.git | |
| commit: 5d9c63dfc2c5f6aa3c2b46fdd2ccddc9fa508a59 | |
| - name: Check | |
| run: | | |
| oxk format "**/*.{ets,js,ts,json5}" | |
| cargo fmt --check | |
| cargo clippy --workspace --exclude webview_example --exclude xcomponent_example --target aarch64-unknown-linux-ohos --all-targets --all-features -- -D warnings | |
| cargo clippy --workspace --exclude webview_example --exclude xcomponent_example --target armv7-unknown-linux-ohos --all-targets --all-features -- -D warnings | |
| cargo clippy --workspace --exclude webview_example --exclude xcomponent_example --target x86_64-unknown-linux-ohos --all-targets --all-features -- -D warnings |