mirror of
https://github.com/actix/actix-website
synced 2025-02-17 10:13:31 +01:00
update CI branch targets
This commit is contained in:
parent
e873500721
commit
14874df7e1
7
.github/workflows/build-check.yml
vendored
7
.github/workflows/build-check.yml
vendored
@ -1,9 +1,10 @@
|
|||||||
name: Build check
|
name: Build website
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
types: [opened, synchronize, reopened]
|
||||||
- v2
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-deploy:
|
test-deploy:
|
||||||
|
25
.github/workflows/rust.yml
vendored
25
.github/workflows/rust.yml
vendored
@ -4,30 +4,17 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [master]
|
||||||
- master
|
|
||||||
|
|
||||||
env:
|
|
||||||
RUSTFLAGS: -A dead-code -A unused-variables
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-examples:
|
check-examples:
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
|
|
||||||
name: Check examples
|
name: Check examples
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
RUSTFLAGS: -A dead-code -A unused-variables
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions-rust-lang/setup-rust-toolchain@v1.3.5
|
||||||
- name: Use stable
|
- run: cargo test
|
||||||
run: |
|
|
||||||
rustup override set stable
|
|
||||||
rustup update stable
|
|
||||||
|
|
||||||
- name: cargo check and cargo test
|
|
||||||
run: |
|
|
||||||
cd examples
|
|
||||||
cargo check
|
|
||||||
cargo test
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user