From d8d9496bac360be951a35dfe098396112b5b4b21 Mon Sep 17 00:00:00 2001 From: p0lunin Date: Fri, 3 Jul 2020 19:08:26 +0300 Subject: [PATCH] parallelize in github actions checking examples --- .github/workflows/ci.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2081f341..926fa39e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,18 @@ on: 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: code-checks: runs-on: ubuntu-latest @@ -37,7 +49,7 @@ jobs: override: true - name: Cargo test run: cargo test --all-features - test-examples: + build-example: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -46,5 +58,5 @@ jobs: profile: minimal toolchain: stable override: true - - name: Test the examples - run: cd examples && bash test_examples.sh + - name: Test the example + run: cd examples && cd ${{ matrix.example }} && cargo check