mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-23 07:09:34 +01:00
Move CI to github actions
This commit is contained in:
parent
6d83450a46
commit
c2d9001051
1 changed files with 71 additions and 0 deletions
71
.github/workflows/ci.yml
vendored
Normal file
71
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,71 @@
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
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: fmt
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: fmt
|
||||||
|
args: --all -- --check
|
||||||
|
|
||||||
|
- name: stable/beta clippy
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
if: matrix.rust == 'stable' || matrix.rust == 'beta'
|
||||||
|
with:
|
||||||
|
command: clippy
|
||||||
|
args: --all-targets --features "" -- -D warnings
|
||||||
|
|
||||||
|
- name: nightly clippy
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
if: matrix.rust == 'nightly'
|
||||||
|
with:
|
||||||
|
command: clippy
|
||||||
|
args: --all-targets --all-features -- -D warnings
|
Loading…
Add table
Reference in a new issue