teloxide/.github/workflows/ci.yml

94 lines
1.9 KiB
YAML
Raw Normal View History

2020-08-12 18:04:50 +03:00
on:
push:
branches:
- master
pull_request:
branches:
- master
name: Continuous integration
jobs:
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
2022-01-25 00:36:19 +03:00
toolchain: nightly-2022-01-17
override: true
components: rustfmt
- name: fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
2020-08-12 18:04:50 +03:00
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
2022-03-25 13:12:26 +04:00
- nightly
2022-04-18 22:15:13 +04:00
- msrv
2020-08-12 18:04:50 +03:00
include:
- rust: stable
2022-03-25 13:12:26 +04:00
toolchain: stable
features: "--features full"
2020-08-12 18:04:50 +03:00
- rust: beta
2022-03-25 13:12:26 +04:00
toolchain: beta
features: "--features full"
2022-03-25 13:12:26 +04:00
- rust: nightly
toolchain: nightly-2022-01-17
2020-08-12 18:04:50 +03:00
features: "--all-features"
2022-04-18 22:15:13 +04:00
- rust: msrv
features: "--features full"
toolchain: "1.58.0"
2020-08-12 18:04:50 +03:00
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
2022-03-25 13:12:26 +04:00
toolchain: ${{ matrix.toolchain }}
2020-08-12 18:04:50 +03:00
override: true
- name: build
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose ${{ matrix.features }}
- name: test
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose ${{ matrix.features }}
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
2022-01-25 00:36:19 +03:00
toolchain: nightly-2022-01-17
2020-08-12 18:04:50 +03:00
override: true
components: clippy
- name: clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features -- -D warnings