-
-
Notifications
You must be signed in to change notification settings - Fork 0
chore: make github workflows work #10
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,8 +24,9 @@ jobs: | |
| - name: worker_pool | ||
| run: cargo run --example worker_pool --features "worker" | ||
|
|
||
| - name: web_features | ||
| run: cargo run --example web_features --features "web" | ||
| ## MEMO(ysh): Comment out due to upstream breaking changes | ||
| # - name: web_features | ||
| # run: cargo run --example web_features --features "web" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. breaking changes の影響で動作しないため、一旦コメントアウト There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 理由をコメントとして残しておくと良さそう?ですかね?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ですね。 |
||
|
|
||
| - name: url_imports | ||
| run: cargo run --example url_import --features="fs_import url_import" | ||
|
|
@@ -87,5 +88,6 @@ jobs: | |
| - name: async_eval | ||
| run: cargo run --example async_eval | ||
|
|
||
| - name: websocket | ||
| run: cargo run --example websocket --features="web websocket" | ||
| ## MEMO(ysh): Comment out due to upstream breaking changes | ||
| # - name: websocket | ||
| # run: cargo run --example websocket --features="web websocket" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 同上
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 9022459 同上です |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,8 +30,8 @@ jobs: | |
|
|
||
| # Lint all the things | ||
| - name: Run clippy | ||
| run: cargo clippy --all-features | ||
| run: cargo clippy --features "default,snapshot_builder,fs_import,url_import,web,os_exit" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 現状 --all-features は動作しないので、我々が利用している features のみ enabled にしてテストするよう変更 |
||
|
|
||
| # Test documentation generation | ||
| - name: Test documentation | ||
| run: cargo doc --features snapshot_builder | ||
| run: cargo doc --features snapshot_builder | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| name: Rust Tests | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 中身は tests.yml と同じです。 |
||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: [ master ] | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - synchronize | ||
| - reopened | ||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Run Tests | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Rust toolchain | ||
| uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| toolchain: 1.88.0 | ||
|
|
||
| - name: Cache cargo dependencies | ||
| uses: Swatinem/rust-cache@v2 | ||
|
|
||
| - name: Run barebones tests (no features) | ||
| run: cargo test --no-default-features --lib | ||
|
|
||
| - name: Run default tests | ||
| run: cargo test --verbose --lib | ||
|
|
||
| - name: Run web tests | ||
| run: cargo test --features "web" --lib | ||
|
|
||
| - name: Run complete tests (all features) | ||
| run: cargo test --features "default,snapshot_builder,fs_import,url_import,web,os_exit" --lib | ||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
現状 --all-features は動作しないので、我々が利用している features のみ enabled にしてテストするよう変更