2023-11-01 15:24:51 +00:00
|
|
|
name: Examples
|
2020-07-18 15:12:51 +09:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened]
|
2023-11-01 15:24:51 +00:00
|
|
|
merge_group:
|
|
|
|
types: [checks_requested]
|
2020-07-18 15:12:51 +09:00
|
|
|
push:
|
2023-11-01 15:21:29 +00:00
|
|
|
branches: [main]
|
2020-07-18 15:12:51 +09:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-examples:
|
|
|
|
name: Check examples
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-11-01 15:30:20 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-01 15:21:29 +00:00
|
|
|
|
2024-01-15 04:27:15 +00:00
|
|
|
- uses: actions-rust-lang/setup-rust-toolchain@v1.8.0
|
2023-02-03 14:00:55 -05:00
|
|
|
|
2023-11-01 15:21:29 +00:00
|
|
|
- name: Test examples
|
|
|
|
env:
|
|
|
|
RUSTFLAGS: -A dead-code -A unused-variables
|
2023-02-03 14:00:55 -05:00
|
|
|
run: |
|
2023-02-03 13:59:14 -05:00
|
|
|
cd examples
|
|
|
|
cargo test
|