mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-31 16:40:37 +01:00
parallelize in github actions checking examples
This commit is contained in:
parent
eb638e9ff5
commit
d8d9496bac
1 changed files with 15 additions and 3 deletions
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
|
@ -6,6 +6,18 @@ on:
|
||||||
|
|
||||||
name: Continuous integration
|
name: Continuous integration
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
example: [
|
||||||
|
admin_bot,
|
||||||
|
dialogue_bot,
|
||||||
|
heroku_ping_pong_bot,
|
||||||
|
ngrok_ping_pong_bot,
|
||||||
|
ping_pong_bot,
|
||||||
|
shared_state_bot,
|
||||||
|
simple_commands_bot,
|
||||||
|
]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
code-checks:
|
code-checks:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -37,7 +49,7 @@ jobs:
|
||||||
override: true
|
override: true
|
||||||
- name: Cargo test
|
- name: Cargo test
|
||||||
run: cargo test --all-features
|
run: cargo test --all-features
|
||||||
test-examples:
|
build-example:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -46,5 +58,5 @@ jobs:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
- name: Test the examples
|
- name: Test the example
|
||||||
run: cd examples && bash test_examples.sh
|
run: cd examples && cd ${{ matrix.example }} && cargo check
|
||||||
|
|
Loading…
Reference in a new issue