teloxide/.github/workflows/ci.yml

90 lines
1.8 KiB
YAML
Raw Normal View History

2020-08-12 17:04:50 +02: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-24 22:36:19 +01: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 17:04:50 +02:00
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
2022-03-25 10:12:26 +01:00
- nightly
2020-08-12 17:04:50 +02:00
include:
- rust: stable
2022-03-25 10:12:26 +01:00
toolchain: stable
features: "--features full"
2020-08-12 17:04:50 +02:00
- rust: beta
2022-03-25 10:12:26 +01:00
toolchain: beta
features: "--features full"
2022-03-25 10:12:26 +01:00
- rust: nightly
toolchain: nightly-2022-01-17
2020-08-12 17:04:50 +02:00
features: "--all-features"
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
2022-03-25 10:12:26 +01:00
toolchain: ${{ matrix.toolchain }}
2020-08-12 17:04:50 +02: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-24 22:36:19 +01:00
toolchain: nightly-2022-01-17
2020-08-12 17:04:50 +02:00
override: true
components: clippy
- name: clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features -- -D warnings