async-graphql/.github/workflows/ci.yml

56 lines
1.4 KiB
YAML
Raw Normal View History

2020-03-01 13:56:14 +00:00
name: CI
on:
push:
branches:
- master
2020-04-15 03:15:30 +00:00
pull_request:
branches:
- master
2020-03-01 13:56:14 +00:00
jobs:
build:
runs-on: ubuntu-latest
steps:
2020-10-16 01:35:17 +00:00
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
2020-09-06 10:29:46 +00:00
- uses: actions-rs/toolchain@v1
with:
2020-09-09 03:05:57 +00:00
toolchain: stable
2020-09-06 10:29:46 +00:00
override: true
2020-09-06 10:38:06 +00:00
components: clippy, rustfmt
2020-03-20 15:32:02 +00:00
- name: Check format
run: cargo fmt --all -- --check
2020-03-21 01:32:13 +00:00
- name: Check with clippy
run: cargo clippy --all
2020-05-16 16:08:03 +00:00
- name: Build without features
run: cargo build --no-default-features
2020-03-20 15:32:02 +00:00
- name: Build
run: cargo build --all --verbose
2020-03-01 13:56:14 +00:00
- name: Run tests
run: cargo test --all --verbose
2020-10-04 23:05:32 +00:00
2020-10-16 01:35:17 +00:00
# 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
2020-10-04 23:05:32 +00:00
# build on nightly
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: clippy, rustfmt
- name: Build on nightly without features
run: cargo build --no-default-features
- name: Build on nightly
run: cargo build --all --verbose