mirror of
https://github.com/actix/actix-website
synced 2024-12-02 19:52:23 +01:00
1da84fca06
* Tweak GHA Signed-off-by: Yuki Okushi <jtitor@2k36.org> * Port actix book Signed-off-by: Yuki Okushi <jtitor@2k36.org> * Fix links Signed-off-by: Yuki Okushi <jtitor@2k36.org> Signed-off-by: Yuki Okushi <jtitor@2k36.org>
34 lines
566 B
YAML
34 lines
566 B
YAML
name: Check examples
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
env:
|
|
RUSTFLAGS: -A dead-code -A unused-variables
|
|
|
|
jobs:
|
|
check-examples:
|
|
strategy:
|
|
fail-fast: false
|
|
|
|
name: Check examples
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Use stable
|
|
run: |
|
|
rustup override set stable
|
|
rustup update stable
|
|
|
|
- name: cargo check and cargo test
|
|
run: |
|
|
cd examples
|
|
cargo check
|
|
cargo test
|