Skip to content

Commit 243c941

Browse files
committed
Add prettier
1 parent 2c3c83a commit 243c941

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@ rust:
55
- nightly
66
cache: cargo
77
before_script:
8+
- sudo apt-get update
9+
- sudo apt-get install -y nodejs
10+
- npm i -g prettier
811
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (rustup component add rustfmt-preview clippy-preview) fi
912
script:
1013
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (cargo fmt --all -- --check) fi
1114
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (cargo clippy) fi
15+
- prettier --debug-check -l './**/*.json'
1216
- cargo test --all
1317
- cargo build --manifest-path=./graphql_client/examples/github/Cargo.toml
1418
- cargo build --manifest-path=./graphql_client_cli/Cargo.toml

0 commit comments

Comments
 (0)