mirror of
https://github.com/actix/actix-website
synced 2024-11-28 02:22:57 +01:00
31 lines
601 B
YAML
31 lines
601 B
YAML
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
|
|
|
|
- name: Install Rust
|
|
uses: actions-rust-lang/setup-rust-toolchain@v1.8.0
|
|
|
|
- name: Install just
|
|
uses: taiki-e/install-action@v2.34.0
|
|
with:
|
|
tool: just
|
|
|
|
- name: Test examples
|
|
env:
|
|
RUSTFLAGS: -A dead-code -A unused-variables
|
|
run: just check-examples
|