name: Examples on: pull_request: types: [opened, synchronize, reopened] merge_group: types: [checks_requested] push: branches: [main] jobs: check-examples: name: Check examples runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1.6.0 - name: Test examples env: RUSTFLAGS: -A dead-code -A unused-variables run: | cd examples cargo test