teloxide/.github/workflows/ci.yml

76 lines
1.8 KiB
YAML
Raw Normal View History

on: [push, pull_request]
2019-11-27 15:30:33 +01:00
name: Continuous integration
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- name: stable/beta build
uses: actions-rs/cargo@v1
if: matrix.rust == 'stable' || matrix.rust == 'beta'
with:
command: build
args: --verbose --features ""
- name: nightly build
uses: actions-rs/cargo@v1
if: matrix.rust == 'nightly'
with:
command: build
args: --verbose --all-features
- name: stable/beta test
uses: actions-rs/cargo@v1
if: matrix.rust == 'stable' || matrix.rust == 'beta'
with:
command: test
args: --verbose --features ""
- name: nightly test
uses: actions-rs/cargo@v1
if: matrix.rust == 'nightly'
with:
command: test
args: --verbose --all-features
- name: stable/beta clippy
uses: actions-rs/cargo@v1
if: matrix.rust == 'stable' || matrix.rust == 'beta'
with:
command: clippy
2019-12-31 20:00:25 +01:00
args: --all-targets --features "" -- -D warnings
2019-11-27 15:30:33 +01:00
- name: nightly clippy
uses: actions-rs/cargo@v1
if: matrix.rust == 'nightly'
with:
2020-02-20 18:03:16 +01:00
command: clippy
2019-12-31 20:00:25 +01:00
args: --all-targets --all-features -- -D warnings
2020-03-27 13:54:06 +01:00
2020-03-31 09:38:48 +02:00
- name: Test the examples
2020-03-31 17:45:22 +02:00
run: cd examples && bash test_examples.sh
2020-03-31 09:38:48 +02:00
2020-03-27 13:54:06 +01:00
- name: fmt
uses: actions-rs/cargo@v1
if: matrix.rust == 'nightly'
with:
command: fmt
args: --all -- --check