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

31 lines
667 B
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:
- uses: actions/checkout@v1
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