Update CI

This commit is contained in:
Sunli 2020-10-16 09:35:17 +08:00
parent 6b92b8c11b
commit 7f08be60f6
2 changed files with 15 additions and 4 deletions

View File

@ -12,7 +12,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
@ -29,6 +32,17 @@ jobs:
- name: Run tests
run: cargo test --all --verbose
# examples
- name: Check examples format
run: cargo fmt --all -- --check
working-directory: ./examples
- name: Check examples with clippy
run: cargo clippy --all
working-directory: ./examples
- name: Build
run: cargo build --all --verbose
working-directory: ./examples
# build on nightly
- uses: actions-rs/toolchain@v1
with:

View File

@ -39,9 +39,6 @@ jobs:
# - name: async-graphql-rocket
# registryName: async-graphql-rocket
# path: async-graphql-rocket
# - name: async-graphql-lambda
# registryName: async-graphql-lambda
# path: async-graphql-lambda
steps:
- uses: actions-rs/toolchain@v1
with: