2020-07-18 08:12:51 +02:00
|
|
|
name: Check examples
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened]
|
|
|
|
push:
|
2023-02-03 19:55:15 +01:00
|
|
|
branches: [master]
|
2020-07-18 08:12:51 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-examples:
|
|
|
|
name: Check examples
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
2023-02-03 19:55:15 +01:00
|
|
|
env:
|
|
|
|
RUSTFLAGS: -A dead-code -A unused-variables
|
|
|
|
|
2020-07-18 08:12:51 +02:00
|
|
|
steps:
|
2022-11-10 14:09:51 +01:00
|
|
|
- uses: actions/checkout@v3
|
2023-02-03 19:55:15 +01:00
|
|
|
- uses: actions-rust-lang/setup-rust-toolchain@v1.3.5
|
2023-02-03 20:00:55 +01:00
|
|
|
|
|
|
|
- name: test examples
|
|
|
|
run: |
|
2023-02-03 19:59:14 +01:00
|
|
|
cd examples
|
|
|
|
cargo test
|