2023-11-01 16:24:51 +01:00
|
|
|
name: Examples
|
2020-07-18 08:12:51 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened]
|
2023-11-01 16:24:51 +01:00
|
|
|
merge_group:
|
|
|
|
types: [checks_requested]
|
2020-07-18 08:12:51 +02:00
|
|
|
push:
|
2023-11-01 16:21:29 +01:00
|
|
|
branches: [main]
|
2020-07-18 08:12:51 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-examples:
|
|
|
|
name: Check examples
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-11-01 16:30:20 +01:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-01 16:21:29 +01:00
|
|
|
|
2024-06-05 06:20:08 +02:00
|
|
|
- name: Install Rust
|
2024-06-10 07:05:54 +02:00
|
|
|
uses: actions-rust-lang/setup-rust-toolchain@v1.9.0
|
2024-06-05 06:20:08 +02:00
|
|
|
|
|
|
|
- name: Install just
|
2024-07-20 01:58:36 +02:00
|
|
|
uses: taiki-e/install-action@v2.41.17
|
2024-06-05 06:20:08 +02:00
|
|
|
with:
|
|
|
|
tool: just
|
2023-02-03 20:00:55 +01:00
|
|
|
|
2023-11-01 16:21:29 +01:00
|
|
|
- name: Test examples
|
|
|
|
env:
|
|
|
|
RUSTFLAGS: -A dead-code -A unused-variables
|
2024-06-05 06:20:08 +02:00
|
|
|
run: just check-examples
|