ci: add js lint check (#43)

This commit is contained in:
Kirill Fomichev 2022-01-03 22:16:01 +03:00 committed by GitHub
parent e7ea77247f
commit e9d34783f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 1 deletions

View File

@ -8,6 +8,21 @@ env:
- SOLANA_VERSION="v1.8.0"
- ANCHOR_VERSION="v0.18.2"
cache:
directories:
# solana
- $HOME/.cache/solana/
- $HOME/.local/share/solana/
# Cargo
- $HOME/.cargo/bin/
- $HOME/.cargo/registry/index/
- $HOME/.cargo/registry/cache/
- $HOME/.cargo/git/db/
- $TRAVIS_BUILD_DIR/target
# npm
- $HOME/.npm
# - $TRAVIS_BUILD_DIR/node_modules
before_deploy:
- anchor build --verifiable
- echo "### SHA256 Checksums" > release_notes.md
@ -45,10 +60,12 @@ jobs:
- <<: *defaults
name: Runs the tests
script:
- npx anchor build
- npx anchor test
- <<: *defaults
name: Cargo fmt & clippy
name: Linting & clippy
script:
- npm run lint
- rustup component add rustfmt clippy
- cargo-fmt --all -- --check
- cargo clippy --all-targets